Share via


LayerDrawable.GetLayerGravity(Int32) Method

Definition

[Android.Runtime.Register("getLayerGravity", "(I)I", "GetGetLayerGravity_IHandler", ApiSince=23)]
public virtual Android.Views.GravityFlags GetLayerGravity (int index);
[<Android.Runtime.Register("getLayerGravity", "(I)I", "GetGetLayerGravity_IHandler", ApiSince=23)>]
abstract member GetLayerGravity : int -> Android.Views.GravityFlags
override this.GetLayerGravity : int -> Android.Views.GravityFlags

Parameters

index
Int32

the index of the layer

Returns

the gravity used to position or stretch the specified layer within its container

Attributes

Remarks

Java documentation for android.graphics.drawable.LayerDrawable.getLayerGravity(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