Megosztás a következőn keresztül:


View.LayoutDirection Property

Definition

Returns the resolved layout direction for this view. -or- Set the layout direction for this view.

public virtual Android.Views.LayoutDirection LayoutDirection { [Android.Runtime.Register("getLayoutDirection", "()I", "GetGetLayoutDirectionHandler")] get; [Android.Runtime.Register("setLayoutDirection", "(I)V", "GetSetLayoutDirection_IHandler")] set; }
[<get: Android.Runtime.Register("getLayoutDirection", "()I", "GetGetLayoutDirectionHandler")>]
[<set: Android.Runtime.Register("setLayoutDirection", "(I)V", "GetSetLayoutDirection_IHandler")>]
member this.LayoutDirection : Android.Views.LayoutDirection with get, set

Property Value

#LAYOUT_DIRECTION_RTL if the layout direction is RTL or returns #LAYOUT_DIRECTION_LTR if the layout direction is not RTL.

For compatibility, this will return #LAYOUT_DIRECTION_LTR if API version is lower than android.os.Build.VERSION_CODES#JELLY_BEAN_MR1.

Attributes

Remarks

Property getter documentation:

Returns the resolved layout direction for this view.

Java documentation for android.view.View.getLayoutDirection().

Property setter documentation:

Set the layout direction for this view. This will propagate a reset of layout direction resolution to the view's children and resolve layout direction for this view.

Java documentation for android.view.View.setLayoutDirection(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