Example usage for Java android.support.v4.app ActionBar fields, constructors, methods, implement or subclass
The text is from its open source code.
int | DISPLAY_HOME_AS_UP Display the 'home' element such that it appears as an 'up' affordance. |
int | DISPLAY_SHOW_CUSTOM Show the custom view if one has been set. |
int | DISPLAY_SHOW_HOME Show 'home' elements in this action bar, leaving more space for other navigation elements. |
int | DISPLAY_SHOW_TITLE Show the activity title and subtitle, if present. |
int | DISPLAY_USE_LOGO Use logo instead of icon if available. |
int | NAVIGATION_MODE_LIST List navigation mode. |
int | NAVIGATION_MODE_STANDARD Standard navigation mode. |
int | NAVIGATION_MODE_TABS Tab navigation mode. |
void | addTab(ActionBar.Tab tab) Add a tab for use in tabbed navigation mode. |
View | getCustomView() |
int | getDisplayOptions() |
int | getNavigationMode() Returns the current navigation mode. |
ActionBar.Tab | getSelectedTab() Returns the currently selected tab if in tabbed navigation mode and there is at least one tab present. |
ActionBar.Tab | getTabAt(int index) Returns the tab at the specified index. |
void | hide() Hide the ActionBar if it is not currently showing. |
ActionBar.Tab | newTab() Create and return a new ActionBar.Tab. |
void | selectTab(ActionBar.Tab tab) Select the specified tab. |
void | setBackgroundDrawable(Drawable d) Set the ActionBar's background. |
void | setCustomView(int resId) Set the action bar into custom navigation mode, supplying a view for custom navigation. Custom navigation views appear between the application icon and any action buttons and may use any space available there. |
void | setCustomView(View view) Set the action bar into custom navigation mode, supplying a view for custom navigation. |
void | setDisplayHomeAsUpEnabled(boolean showHomeAsUp) Set whether home should be displayed as an "up" affordance. |
void | setDisplayOptions(int options) Set display options. |
void | setDisplayShowCustomEnabled(boolean showCustom) Set whether a custom view should be displayed, if set. To set several display options at once, see the setDisplayOptions methods. |
void | setDisplayShowHomeEnabled(boolean showHome) Set whether to include the application home affordance in the action bar. |
void | setDisplayShowTitleEnabled(boolean showTitle) Set whether an activity title/subtitle should be displayed. To set several display options at once, see the setDisplayOptions methods. |
void | setDisplayUseLogoEnabled(boolean useLogo) Set whether to display the activity logo rather than the activity icon. |
void | setListNavigationCallbacks(SpinnerAdapter adapter, ActionBar.OnNavigationListener callback) Set the adapter and navigation callback for list navigation mode. |
void | setNavigationMode(int mode) Set the current navigation mode. |
void | setTitle(CharSequence title) Set the action bar's title. |
void | setTitle(int resId) Set the action bar's title. |
void | show() Show the ActionBar if it is not currently showing. |