Пример #1
0
 public void onPreContentChanged() {
   mActionBarHost = (ActionBarHost) findViewById(R.id.gd_action_bar_host);
   if (mActionBarHost == null) {
     throw new RuntimeException(
         "Your content must have an ActionBarHost whose id attribute is R.id.gd_action_bar_host");
   }
   mActionBarHost.getActionBar().setOnActionBarListener(mActionBarListener);
 }
Пример #2
0
 public FrameLayout getContentView() {
   ensureLayout();
   return mActionBarHost.getContentView();
 }
Пример #3
0
 public ActionBar getActionBar() {
   ensureLayout();
   return mActionBarHost.getActionBar();
 }