Udostępnij za pośrednictwem


ActionBar.SetDisplayHomeAsUpEnabled(Boolean) Method

Definition

Set whether home should be displayed as an "up" affordance.

[Android.Runtime.Register("setDisplayHomeAsUpEnabled", "(Z)V", "GetSetDisplayHomeAsUpEnabled_ZHandler")]
public abstract void SetDisplayHomeAsUpEnabled (bool showHomeAsUp);
[<Android.Runtime.Register("setDisplayHomeAsUpEnabled", "(Z)V", "GetSetDisplayHomeAsUpEnabled_ZHandler")>]
abstract member SetDisplayHomeAsUpEnabled : bool -> unit

Parameters

showHomeAsUp
Boolean

true to show the user that selecting home will return one level up rather than to the top level of the app.

Attributes

Remarks

Set whether home should be displayed as an "up" affordance. Set this to true if selecting "home" returns up by a single level in your UI rather than back to the top level or front page.

To set several display options at once, see the setDisplayOptions methods.

Java documentation for android.app.ActionBar.setDisplayHomeAsUpEnabled(boolean).

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

See also

  • DisplayOptions
  • <xref:Android.App.ActionBar.SetDisplayOptions(Android.App.ActionBarDisplayOptions%2c+Android.App.ActionBarDisplayOptions)>