次の方法で共有


Configuration.Locale Property

Definition

Current user preference for the locale, corresponding to locale resource qualifier.

[Android.Runtime.Register("locale")]
public Java.Util.Locale? Locale { get; set; }
[<Android.Runtime.Register("locale")>]
member this.Locale : Java.Util.Locale with get, set

Property Value

Attributes

Remarks

Current user preference for the locale, corresponding to locale resource qualifier.

This member is deprecated. Do not set or read this directly. Use #getLocales() and #setLocales(LocaleList). If only the primary locale is needed, getLocales().get(0) is now the preferred accessor.

Java documentation for android.content.res.Configuration.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.

Applies to