TextUtils.GetLayoutDirectionFromLocale(Locale) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return the layout direction for a given Locale
[Android.Runtime.Register("getLayoutDirectionFromLocale", "(Ljava/util/Locale;)I", "")]
public static Android.Views.TextDirection GetLayoutDirectionFromLocale (Java.Util.Locale? locale);
[<Android.Runtime.Register("getLayoutDirectionFromLocale", "(Ljava/util/Locale;)I", "")>]
static member GetLayoutDirectionFromLocale : Java.Util.Locale -> Android.Views.TextDirection
Parameters
- locale
- Locale
the Locale for which we want the layout direction. Can be null.
Returns
the layout direction. This may be one of:
android.view.View#LAYOUT_DIRECTION_LTR
or
android.view.View#LAYOUT_DIRECTION_RTL
.
Be careful: this code will need to be updated when vertical scripts will be supported
- Attributes
Remarks
Return the layout direction for a given Locale
Java documentation for android.text.TextUtils.getLayoutDirectionFromLocale(java.util.Locale)
.
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.