Sdílet prostřednictvím


ActionBar.SetDisplayOptions Method

Definition

Set selected display options.

[Android.Runtime.Register("setDisplayOptions", "(II)V", "GetSetDisplayOptions_IIHandler")]
public abstract void SetDisplayOptions (Android.App.ActionBarDisplayOptions options, Android.App.ActionBarDisplayOptions mask);
[<Android.Runtime.Register("setDisplayOptions", "(II)V", "GetSetDisplayOptions_IIHandler")>]
abstract member SetDisplayOptions : Android.App.ActionBarDisplayOptions * Android.App.ActionBarDisplayOptions -> unit

Parameters

options
ActionBarDisplayOptions

A combination of the bits defined by the DISPLAY_ constants defined in ActionBar.

mask
ActionBarDisplayOptions

A bit mask declaring which display options should be changed.

Attributes

Remarks

Set selected display options. Only the options specified by mask will be changed. To change all display option bits at once, see #setDisplayOptions(int).

Example: setDisplayOptions(0, DISPLAY_SHOW_HOME) will disable the #DISPLAY_SHOW_HOME option. setDisplayOptions(DISPLAY_SHOW_HOME, DISPLAY_SHOW_HOME | DISPLAY_USE_LOGO) will enable #DISPLAY_SHOW_HOME and disable #DISPLAY_USE_LOGO.

Java documentation for android.app.ActionBar.setDisplayOptions(int, 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.

Applies to