Språk

ActivityInfo.WindowLayout Constructor

Definition

Creates a new WindowLayout instance with the specified dimensions and constraints.

[Android.Runtime.Register(".ctor", "(IFIFIII)V", "", ApiSince=24)]
public WindowLayout(int width, float widthFraction, int height, float heightFraction, Android.Views.GravityFlags gravity, int minWidth, int minHeight);
[<Android.Runtime.Register(".ctor", "(IFIFIII)V", "", ApiSince=24)>]
new Android.Content.PM.ActivityInfo.WindowLayout : int * single * int * single * Android.Views.GravityFlags * int * int -> Android.Content.PM.ActivityInfo.WindowLayout

Parameters

width
Int32

The explicit activity-window width in pixels.

widthFraction
Single

The requested fraction of available display width.

height
Int32

The explicit activity-window height in pixels.

heightFraction
Single

The requested fraction of available display height.

gravity
GravityFlags

The activity-window placement flags to store.

minWidth
Int32

The minimum content width in pixels.

minHeight
Int32

The minimum content height in pixels.

Attributes

Remarks

Creates a new WindowLayout instance with the specified dimensions and constraints.

Android reference for android.content.pm.ActivityInfo.WindowLayout.WindowLayout.

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