Język

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

int: A combination of the bits defined by the DISPLAY_ constants defined in ActionBar. Value is either 0 or a combination of the following: DISPLAY_USE_LOGO DISPLAY_SHOW_HOME DISPLAY_HOME_AS_UP DISPLAY_SHOW_TITLE DISPLAY_SHOW_CUSTOM

mask
ActionBarDisplayOptions

int: A bit mask declaring which display options should be changed. Value is either 0 or a combination of the following: DISPLAY_USE_LOGO DISPLAY_SHOW_HOME DISPLAY_HOME_AS_UP DISPLAY_SHOW_TITLE DISPLAY_SHOW_CUSTOM

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.

Android reference for android.app.ActionBar.setDisplayOptions.

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