Compartir a través de


Window.SetDecorFitsSystemWindows(Boolean) Method

Definition

Sets whether the decor view should fit root-level content views for WindowInsets.

[Android.Runtime.Register("setDecorFitsSystemWindows", "(Z)V", "GetSetDecorFitsSystemWindows_ZHandler", ApiSince=30)]
public virtual void SetDecorFitsSystemWindows (bool decorFitsSystemWindows);
[<Android.Runtime.Register("setDecorFitsSystemWindows", "(Z)V", "GetSetDecorFitsSystemWindows_ZHandler", ApiSince=30)>]
abstract member SetDecorFitsSystemWindows : bool -> unit
override this.SetDecorFitsSystemWindows : bool -> unit

Parameters

decorFitsSystemWindows
Boolean

Whether the decor view should fit root-level content views for insets.

Attributes

Remarks

Sets whether the decor view should fit root-level content views for WindowInsets.

If set to true, the framework will inspect the now deprecated View#SYSTEM_UI_LAYOUT_FLAGS as well the WindowManager.LayoutParams#SOFT_INPUT_ADJUST_RESIZE flag and fits content according to these flags.

If set to false, the framework will not fit the content view to the insets and will just pass through the WindowInsets to the content view.

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