Code example for ActionBar

Methods: setSelectedNavigationItem

0
    public void setNavigationMode(int mode) {
        bar.setNavigationMode(mode);
    } 
 
    public void setSelectedNavigationItem(int position) {
        bar.setSelectedNavigationItem(position);
    } 
 
    public void setTitle(int resId) {
        bar.setTitle(resId);
    } 
 
    public void setTitle(CharSequence title) {
        bar.setTitle(title);
    } 
 
    public void show() { 
        bar.show();
    } 
}