1.Since in API 21 the method setNavigationMode(ActionBar.NAVIGATION_MODE_LIST) is deprecated.Which API replace it?
2.Can I set the spinner right-aligned?
1.Since in API 21 the method setNavigationMode(ActionBar.NAVIGATION_MODE_LIST) is deprecated.Which API replace it?
2.Can I set the spinner right-aligned?
Yes you obama.
Action bar mainly contains four functional areas. They are app icon, view control, action buttons and action overflow.
App Icon – App branding logo or icon will be displayed here.
View Control – A dedicated space to display app title. Also provides option to switch between views by
adding spinner
or tabbed navigation.Action Buttons – Some important actions of the app can be added here. Action Overflow – All unimportant action will be shown as a menu.
Check out the following diagram for complete overview about action bar.
With the API 21 the method
setNavigationMode(ActionBar.NAVIGATION_MODE_LIST)
is deprecated.The best way to work with a spinner is to use a Toolbar like this:
You can find an example in the Google IO 2014