Code example for ActionBar

Methods: setDisplayOptions

0
        } 
    } 
 
    private void setupActionBar(Bundle savedInstanceState) {
        ActionBar bar = getActionBar();
        bar.setDisplayOptions(ActionBar.DISPLAY_SHOW_HOME
                | ActionBar.DISPLAY_HOME_AS_UP
                | ActionBar.DISPLAY_SHOW_TITLE);
        refreshTitle(thingBundle.hasLinkId() ? thingBundle.getLinkTitle() : thingBundle.getTitle());
    } 
 
    private void refreshTitle(String title) {
        setTitle(Strings.toString(formatter.formatAll(this, title)));
    } 
 
    @Override 
    public Loader<AccountResult> onCreateLoader(int id, Bundle args) {
        return new AccountLoader(this, true, false);
    } 
 
    @Override