Example #1
0
 /** Show the vertical title for this module (only vertical orientation) */
 public void showVerticalTitle() {
   if (idVerticalTitle == 0) {
     return;
   }
   View activeAssessmentsLabel = dashboardActivity.findViewById(idVerticalTitle);
   activeAssessmentsLabel.setVisibility(View.VISIBLE);
 }
Example #2
0
  public void replaceFragment(int layout, Fragment fragment) {
    if (fragment instanceof ListFragment) {
      try {
        // fix some visual problems
        View vg = dashboardActivity.findViewById(layout);
        vg.invalidate();
      } catch (Exception e) {
      }
    }

    FragmentTransaction ft = getFragmentTransaction();
    ft.replace(layout, fragment);
    ft.commit();
  }