Freigeben über


TextClock.DefaultFormat12Hour Property

Definition

Caution

deprecated

The default formatting pattern in 12-hour mode.

[Android.Runtime.Register("DEFAULT_FORMAT_12_HOUR")]
[System.Obsolete("deprecated")]
public static Java.Lang.ICharSequence? DefaultFormat12Hour { get; }
[<Android.Runtime.Register("DEFAULT_FORMAT_12_HOUR")>]
[<System.Obsolete("deprecated")>]
static member DefaultFormat12Hour : Java.Lang.ICharSequence

Property Value

Attributes

Remarks

The default formatting pattern in 12-hour mode. This pattern is used if #setFormat12Hour(CharSequence) is called with a null pattern or if no pattern was specified when creating an instance of this class.

This default pattern shows only the time, hours and minutes, and an am/pm indicator.

This member is deprecated. Let the system use locale-appropriate defaults instead.

Java documentation for android.widget.TextClock.DEFAULT_FORMAT_12_HOUR.

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

See also