Share via


ActionBar.SetHomeAsUpIndicator Method

Definition

Overloads

SetHomeAsUpIndicator(Drawable)

Set an alternate drawable to display next to the icon/logo/title when #DISPLAY_HOME_AS_UP is enabled.

SetHomeAsUpIndicator(Int32)

Set an alternate drawable to display next to the icon/logo/title when #DISPLAY_HOME_AS_UP is enabled.

SetHomeAsUpIndicator(Drawable)

Set an alternate drawable to display next to the icon/logo/title when #DISPLAY_HOME_AS_UP is enabled.

[Android.Runtime.Register("setHomeAsUpIndicator", "(Landroid/graphics/drawable/Drawable;)V", "GetSetHomeAsUpIndicator_Landroid_graphics_drawable_Drawable_Handler")]
public virtual void SetHomeAsUpIndicator (Android.Graphics.Drawables.Drawable? indicator);
[<Android.Runtime.Register("setHomeAsUpIndicator", "(Landroid/graphics/drawable/Drawable;)V", "GetSetHomeAsUpIndicator_Landroid_graphics_drawable_Drawable_Handler")>]
abstract member SetHomeAsUpIndicator : Android.Graphics.Drawables.Drawable -> unit
override this.SetHomeAsUpIndicator : Android.Graphics.Drawables.Drawable -> unit

Parameters

indicator
Drawable

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

Attributes

Remarks

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(int) setHomeActionContentDescription() to provide a correct description of the action for accessibility support.

Java documentation for android.app.ActionBar.setHomeAsUpIndicator(android.graphics.drawable.Drawable).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to

SetHomeAsUpIndicator(Int32)

Set an alternate drawable to display next to the icon/logo/title when #DISPLAY_HOME_AS_UP is enabled.

[Android.Runtime.Register("setHomeAsUpIndicator", "(I)V", "GetSetHomeAsUpIndicator_IHandler")]
public virtual void SetHomeAsUpIndicator (int resId);
[<Android.Runtime.Register("setHomeAsUpIndicator", "(I)V", "GetSetHomeAsUpIndicator_IHandler")>]
abstract member SetHomeAsUpIndicator : int -> unit
override this.SetHomeAsUpIndicator : int -> unit

Parameters

resId
Int32

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

Attributes

Remarks

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(int) setHomeActionContentDescription() to provide a correct description of the action for accessibility support.

Java documentation for android.app.ActionBar.setHomeAsUpIndicator(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to