Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public class

ActionBarImplJBMR2

extends ActionBarImplJB
java.lang.Object
   ↳ android.support.v7.app.ActionBar
     ↳ android.support.v7.app.ActionBarImplJB
       ↳ android.support.v7.app.ActionBarImplJBMR2

Summary

[Expand]
Inherited Constants
From class android.support.v7.app.ActionBar
Public Constructors
ActionBarImplJBMR2 ( Activity activity, ActionBar.Callback callback)
Public Methods
void setHomeActionContentDescription ( CharSequence description)
Set an alternate description for the Home/Up action, when enabled.
void setHomeActionContentDescription (int resId)
Set an alternate description for the Home/Up action, when enabled.
void setHomeAsUpIndicator (int resId)
Set an alternate drawable to display next to the icon/logo/title when DISPLAY_HOME_AS_UP is enabled.
void setHomeAsUpIndicator ( Drawable indicator)
Set an alternate drawable to display next to the icon/logo/title when DISPLAY_HOME_AS_UP is enabled.
[Expand]
Inherited Methods
From class android.support.v7.app.ActionBarImplJB
From class android.support.v7.app.ActionBar
From class java.lang.Object

Public Constructors

public ActionBarImplJBMR2 ( Activity activity, ActionBar.Callback callback)

Public Methods

public void setHomeActionContentDescription ( CharSequence description)

Set an alternate description for the Home/Up action, when enabled.

This description is commonly used for accessibility/screen readers when the Home action is enabled. (See setDisplayHomeAsUpEnabled(boolean) .) Examples of this are, "Navigate Home" or "Navigate Up" depending on the DISPLAY_HOME_AS_UP display option. If you have changed the home-as-up indicator using setHomeAsUpIndicator(int) to indicate more specific functionality such as a sliding drawer, you should also set this to accurately describe the action.

Setting this to null will use the system default description.

Parameters
description New description for the Home action when enabled

public void setHomeActionContentDescription (int resId)

Set an alternate description for the Home/Up action, when enabled.

This description is commonly used for accessibility/screen readers when the Home action is enabled. (See setDisplayHomeAsUpEnabled(boolean) .) Examples of this are, "Navigate Home" or "Navigate Up" depending on the DISPLAY_HOME_AS_UP display option. If you have changed the home-as-up indicator using setHomeAsUpIndicator(int) to indicate more specific functionality such as a sliding drawer, you should also set this to accurately describe the action.

Setting this to 0 will use the system default description.

Parameters
resId Resource ID of a string to use as the new description for the Home action when enabled

public void setHomeAsUpIndicator (int resId)

Set an alternate drawable to display next to the icon/logo/title when DISPLAY_HOME_AS_UP is enabled. This can be useful if you are using this mode to display an alternate selection for up navigation, such as a sliding drawer.

If you pass 0 to this method, the default drawable from the theme will be used.

If you implement alternate or intermediate behavior around Up, you should also call setHomeActionContentDescription() to provide a correct description of the action for accessibility support.

Parameters
resId Resource ID of a drawable to use for the up indicator, or 0 to use the theme's default

public void setHomeAsUpIndicator ( Drawable indicator)

Set an alternate drawable to display next to the icon/logo/title when DISPLAY_HOME_AS_UP is enabled. This can be useful if you are using this mode to display an alternate selection for up navigation, such as a sliding drawer.

If you pass null to this method, the default drawable from the theme will be used.

If you implement alternate or intermediate behavior around Up, you should also call setHomeActionContentDescription() to provide a correct description of the action for accessibility support.

Parameters
indicator A drawable to use for the up indicator, or null to use the theme's default