List of usage examples for android.app ActionBar DISPLAY_SHOW_CUSTOM
int DISPLAY_SHOW_CUSTOM
To view the source code for android.app ActionBar DISPLAY_SHOW_CUSTOM.
Click Source Link
From source file:com.chen.mail.ui.AbstractActivityController.java
/** * Attach the action bar to the activity. *//*w ww . ja va2 s .co m*/ private void attachActionBar() { final ActionBar actionBar = mActivity.getActionBar(); if (actionBar != null && mActionBarView != null) { actionBar.setCustomView(mActionBarView, new ActionBar.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.MATCH_PARENT)); // Show a custom view and home icon, keep the title and subttitle final int mask = ActionBar.DISPLAY_SHOW_CUSTOM | ActionBar.DISPLAY_SHOW_TITLE | ActionBar.DISPLAY_SHOW_HOME; actionBar.setDisplayOptions(mask, mask); } mViewMode.addListener(mActionBarView); }
From source file:com.indeema.mail.ui.AbstractActivityController.java
/** * Attach the action bar to the activity. *//*from w w w.j a v a 2s .c o m*/ private void attachActionBar() { final ActionBar actionBar = mActivity.getActionBar(); if (actionBar != null && mActionBarView != null) { actionBar.setCustomView(mActionBarView, new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.MATCH_PARENT)); // Show a custom view and home icon, keep the title and subttitle final int mask = ActionBar.DISPLAY_SHOW_CUSTOM | ActionBar.DISPLAY_SHOW_TITLE | ActionBar.DISPLAY_SHOW_HOME; actionBar.setDisplayOptions(mask, mask); } mViewMode.addListener(mActionBarView); }
From source file:org.mozilla.gecko.GeckoApp.java
public void refreshActionBar() { if (Build.VERSION.SDK_INT >= 11) { mBrowserToolbar = (BrowserToolbar) getLayoutInflater().inflate(R.layout.browser_toolbar, null); mBrowserToolbar.init();//from w ww .ja v a 2s . c o m mBrowserToolbar.refresh(); GeckoActionBar.setBackgroundDrawable(this, getResources().getDrawable(R.drawable.gecko_actionbar_bg)); GeckoActionBar.setDisplayOptions(this, ActionBar.DISPLAY_SHOW_CUSTOM, ActionBar.DISPLAY_SHOW_CUSTOM | ActionBar.DISPLAY_SHOW_HOME | ActionBar.DISPLAY_SHOW_TITLE | ActionBar.DISPLAY_USE_LOGO); GeckoActionBar.setCustomView(this, mBrowserToolbar); } }