Android.Views.Gravity.GetAbsoluteGravity Method
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.

Syntax

[Android.Runtime.Register("getAbsoluteGravity", "(II)I", "")]
[return:Android.Runtime.GeneratedEnum]
public static GravityFlags GetAbsoluteGravity ([Android.Runtime.GeneratedEnum] GravityFlags gravity, [Android.Runtime.GeneratedEnum] GravityFlags layoutDirection)

Parameters

gravity
The gravity to convert to absolute (horizontal) values.
layoutDirection
The layout direction.

Returns

Documentation for this section has not yet been entered.

Remarks

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.

Convert script specific gravity to absolute horizontal value.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 14