Language

LayoutAttribute Class

Definition

Declares initial multi-window layout information for an activity.

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
[System.Serializable]
public sealed class LayoutAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)>]
[<System.Serializable>]
type LayoutAttribute = class
    inherit Attribute
Inheritance
LayoutAttribute
Attributes

Remarks

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.

Constructors

Name Description
LayoutAttribute()

Initializes a multi-window activity layout declaration.

Properties

Name Description
DefaultHeight

Gets or sets the initial height declared for the activity window.

DefaultWidth

Gets or sets the initial width declared for the activity window.

Gravity

Gets or sets the initial positioning gravity for the activity window.

MinHeight

Gets or sets the minimum height declared for the activity's task layout.

MinWidth

Gets or sets the minimum width declared for the activity's task layout.

Applies to