ViewGroup.LayoutMode Property

Definition

Returns the basis of alignment during layout operations on this ViewGroup: either #LAYOUT_MODE_CLIP_BOUNDS or #LAYOUT_MODE_OPTICAL_BOUNDS. -or- Sets the basis of alignment during the layout of this ViewGroup.

public virtual Android.Views.ViewLayoutMode LayoutMode { [Android.Runtime.Register("getLayoutMode", "()I", "GetGetLayoutModeHandler")] get; [Android.Runtime.Register("setLayoutMode", "(I)V", "GetSetLayoutMode_IHandler")] set; }
[<get: Android.Runtime.Register("getLayoutMode", "()I", "GetGetLayoutModeHandler")>]
[<set: Android.Runtime.Register("setLayoutMode", "(I)V", "GetSetLayoutMode_IHandler")>]
member this.LayoutMode : Android.Views.ViewLayoutMode with get, set

Property Value

the layout mode to use during layout operations

Attributes

Remarks

Property getter documentation:

Returns the basis of alignment during layout operations on this ViewGroup: either #LAYOUT_MODE_CLIP_BOUNDS or #LAYOUT_MODE_OPTICAL_BOUNDS.

If no layoutMode was explicitly set, either programmatically or in an XML resource, the method returns the layoutMode of the view's parent ViewGroup if such a parent exists, otherwise the method returns a default value of #LAYOUT_MODE_CLIP_BOUNDS.

Java documentation for android.view.ViewGroup.getLayoutMode().

Property setter documentation:

Sets the basis of alignment during the layout of this ViewGroup. Valid values are either #LAYOUT_MODE_CLIP_BOUNDS or #LAYOUT_MODE_OPTICAL_BOUNDS.

Java documentation for android.view.ViewGroup.setLayoutMode(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

See also