Code example for ActionBar

Methods: setListNavigationCallbackssetNavigationModesetTitle

0
		workwithListActionBar(); 
	} 
 
	public void workwithListActionBar() { 
		ActionBar bar = this.getActionBar();
		bar.setTitle(tag);
		bar.setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
		bar.setListNavigationCallbacks(new SimpleSpinnerArrayAdapter(this),new ListListener(this, this));
	} 
 
} 
Experience pair programming with AI  Get Codota for Java