public class ActionBarCallback
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ActionBarCallback.HomeButtonStyle
Types of navigation for home button.
|
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ATTR_MENU |
protected static java.lang.String |
ATTR_NAV_MODE |
static int |
NAVIGATION_MODE_LIST |
static int |
NAVIGATION_MODE_STANDARD |
static int |
NAVIGATION_MODE_TABS |
protected static java.lang.String |
VALUE_NAV_MODE_LIST |
protected static java.lang.String |
VALUE_NAV_MODE_TABS |
Constructor and Description |
---|
ActionBarCallback() |
Modifier and Type | Method and Description |
---|---|
ActionBarCallback.HomeButtonStyle |
getHomeButtonStyle()
Returns the type of navigation for home button to be used in the action bar.
|
java.util.List<java.lang.String> |
getMenuIdNames()
Returns a list of names of the IDs for menus to add to the action bar.
|
int |
getNavigationMode()
Returns which navigation mode the action bar should use.
|
boolean |
getSplitActionBarWhenNarrow()
Returns whether the Action Bar should be split for narrow screens.
|
java.lang.String |
getSubTitle()
Returns the subtitle to be used with the action bar or null if there is no subtitle.
|
boolean |
isOverflowPopupNeeded()
Returns whether to draw the overflow menu popup.
|
public static final int NAVIGATION_MODE_STANDARD
public static final int NAVIGATION_MODE_LIST
public static final int NAVIGATION_MODE_TABS
protected static final java.lang.String ATTR_MENU
protected static final java.lang.String ATTR_NAV_MODE
protected static final java.lang.String VALUE_NAV_MODE_TABS
protected static final java.lang.String VALUE_NAV_MODE_LIST
public java.util.List<java.lang.String> getMenuIdNames()
public boolean getSplitActionBarWhenNarrow()
public int getNavigationMode()
NAVIGATION_MODE_STANDARD
, NAVIGATION_MODE_LIST
or
NAVIGATION_MODE_TABS
public java.lang.String getSubTitle()
public ActionBarCallback.HomeButtonStyle getHomeButtonStyle()
For example, for showHomeAsUp, an arrow is shown alongside the "home" icon.
public boolean isOverflowPopupNeeded()