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); }
public FrameLayout getContentView() { ensureLayout(); return mActionBarHost.getContentView(); }
public ActionBar getActionBar() { ensureLayout(); return mActionBarHost.getActionBar(); }