Udostępnij za pośrednictwem


Gravity.GetAbsoluteGravity(GravityFlags, GravityFlags) Method

Definition

Convert script specific gravity to absolute horizontal value.

[Android.Runtime.Register("getAbsoluteGravity", "(II)I", "")]
public static Android.Views.GravityFlags GetAbsoluteGravity (Android.Views.GravityFlags gravity, Android.Views.GravityFlags layoutDirection);
[<Android.Runtime.Register("getAbsoluteGravity", "(II)I", "")>]
static member GetAbsoluteGravity : Android.Views.GravityFlags * Android.Views.GravityFlags -> Android.Views.GravityFlags

Parameters

gravity
GravityFlags

The gravity to convert to absolute (horizontal) values.

layoutDirection
GravityFlags

The layout direction.

Returns

gravity converted to absolute (horizontal) values.

Attributes

Remarks

Convert script specific gravity to absolute horizontal value.

if horizontal direction is LTR, then START will set LEFT and END will set RIGHT. if horizontal direction is RTL, then START will set RIGHT and END will set LEFT.

Java documentation for android.view.Gravity.getAbsoluteGravity(int, 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