Пример #1
0
  /** @param savedInstanceState */
  @Override
  protected void onPostCreate(Bundle savedInstanceState) {
    super.onPostCreate(savedInstanceState);

    /** If we are on HC or ICS the actionBar is setup differently for sub-activities */
    getActivityHelper().setupSubActivity();
  }
Пример #2
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    AnalyticsUtils.getInstance(this).trackPageView("/Livestock");

    setContentView(R.layout.activity_livestock);

    //        ActionBar bar = getActionBar();
    //        bar.setDisplayShowTitleEnabled(false);

    getActivityHelper().setupActionBar("Livestock", 0);

    final FragmentManager fm = getSupportFragmentManager();

    ContentFragment frag = (ContentFragment) fm.findFragmentById(R.id.content_frag);
    if (frag != null) mDualFragments = true;
  }
Пример #3
0
 @Override
 public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putInt("theme", mThemeId);
   outState.putBoolean("titlesHidden", mTitlesHidden);
 }