Code example for ActionBar

Methods: setCustomView, setDisplayOptions, setNavigationMode

0
        setupActionBar(); 
        setUseQuickControls(BrowserSettings.getInstance().useQuickControls()); 
    } 
 
    private void setupActionBar() { 
        mActionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);
        mActionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
        mActionBar.setCustomView(mTabBar);
    } 
 
    public void showComboView(ComboViews startWith, Bundle extras) {
        super.showComboView(startWith, extras);
        if (mUseQuickControls) { 
            mActionBar.show();
        } 
    } 
 
    @Override 
    public void setUseQuickControls(boolean useQuickControls) {
        mUseQuickControls = useQuickControls;
        mTitleBar.setUseQuickControls(mUseQuickControls);