Code example for ActionBar

Methods: setDisplayShowTitleEnabled

0
    public static void setDisplayShowTitleEnabled(Activity activity,
            boolean showTitle) {
        if (BuildHelper.isApi11_HoneyCombOrLater()) { 
            ActionBar actionBar = activity.getActionBar();
            if (actionBar != null) {
                actionBar.setDisplayShowTitleEnabled(showTitle);
            } 
        } 
    } 
 
    public static void setDisplayUseLogoEnabled(Activity activity,
            boolean useLogo) {
        if (BuildHelper.isApi11_HoneyCombOrLater()) { 
            ActionBar actionBar = activity.getActionBar();
            if (actionBar != null) {
                actionBar.setDisplayUseLogoEnabled(useLogo);
            } 
        } 
    } 
 
    public static void setDisplayOptions(Activity activity, int options,