ActionBar.SetHomeAsUpIndicator Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| 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
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() to provide a correct description of the action for accessibility support.
See also:
Android reference for android.app.ActionBar.setHomeAsUpIndicator.
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.
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
int: 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() to provide a correct description of the action for accessibility support.
See also:
Android reference for android.app.ActionBar.setHomeAsUpIndicator.
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.