Exemplo n.º 1
0
 @Override
 public void hideComboView() {
   if (isComboViewShowing()) {
     mComboView.hideViews();
     mActionBar = mActivity.getActionBar();
     setupActionBar();
     if (mActionBar != null) mActionBar.show();
     mNavBar.setVisibility(View.VISIBLE);
   }
 }
Exemplo n.º 2
0
 @Override
 public void onProgressChanged(Tab tab) {
   super.onProgressChanged(tab);
   if (mComboView != null && !mComboView.isShowing()) {
     mActionBar = mActivity.getActionBar();
     setupActionBar();
     if (mActionBar != null) mActionBar.show();
     if (mNavBar != null) mNavBar.setVisibility(View.VISIBLE);
   }
 }
Exemplo n.º 3
0
 public void showComboView(ComboViews startWith, Bundle extras) {
   if (mComboView == null) {
     ViewStub stub =
         (ViewStub) mActivity.getWindow().getDecorView().findViewById(R.id.combo_view_stub);
     mComboView = (ComboView) stub.inflate();
     mComboView.setVisibility(View.GONE);
     mComboView.setupViews(mActivity);
   }
   mNavBar.setVisibility(View.GONE);
   if (mActionBar != null) mActionBar.hide();
   Bundle b = new Bundle();
   b.putString(ComboViewActivity.EXTRA_INITIAL_VIEW, startWith.name());
   b.putBundle(ComboViewActivity.EXTRA_COMBO_ARGS, extras);
   Tab t = getActiveTab();
   if (t != null) {
     b.putString(ComboViewActivity.EXTRA_CURRENT_URL, t.getUrl());
   }
   mComboView.showViews(mActivity, b);
 }
Exemplo n.º 4
0
 @Override
 public boolean isComboViewShowing() {
   return mComboView != null && mComboView.getVisibility() == View.VISIBLE;
 }