Share via


Drawable.SetLayoutDirection(LayoutDirection) Method

Definition

Set the layout direction for this drawable.

[Android.Runtime.Register("setLayoutDirection", "(I)Z", "", ApiSince=23)]
public bool SetLayoutDirection (Android.Views.LayoutDirection layoutDirection);
[<Android.Runtime.Register("setLayoutDirection", "(I)Z", "", ApiSince=23)>]
member this.SetLayoutDirection : Android.Views.LayoutDirection -> bool

Parameters

layoutDirection
LayoutDirection

the resolved layout direction for the drawable, either android.view.View#LAYOUT_DIRECTION_LTR or android.view.View#LAYOUT_DIRECTION_RTL

Returns

true if the layout direction change has caused the appearance of the drawable to change such that it needs to be re-drawn, false otherwise

Attributes

Remarks

Set the layout direction for this drawable. Should be a resolved layout direction, as the Drawable has no capacity to do the resolution on its own.

Java documentation for android.graphics.drawable.Drawable.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