Sdílet prostřednictvím


Window.RequestFeature(WindowFeatures) Method

Definition

Enable extended screen features.

[Android.Runtime.Register("requestFeature", "(I)Z", "GetRequestFeature_IHandler")]
public virtual bool RequestFeature (Android.Views.WindowFeatures featureId);
[<Android.Runtime.Register("requestFeature", "(I)Z", "GetRequestFeature_IHandler")>]
abstract member RequestFeature : Android.Views.WindowFeatures -> bool
override this.RequestFeature : Android.Views.WindowFeatures -> bool

Parameters

featureId
WindowFeatures

The desired features, defined as constants by Window.

Returns

The features that are now set.

Attributes

Remarks

Enable extended screen features. This must be called before setContentView(). May be called as many times as desired as long as it is before setContentView(). If not called, no extended features will be available. You can not turn off a feature once it is requested. You canot use other title features with #FEATURE_CUSTOM_TITLE.

Java documentation for android.view.Window.requestFeature(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