다음을 통해 공유


TextClock.Is24HourModeEnabled Method

Definition

Indicates whether the system is currently using the 24-hour mode.

[Android.Runtime.Register("is24HourModeEnabled", "()Z", "GetIs24HourModeEnabledHandler")]
public virtual bool Is24HourModeEnabled ();
[<Android.Runtime.Register("is24HourModeEnabled", "()Z", "GetIs24HourModeEnabledHandler")>]
abstract member Is24HourModeEnabled : unit -> bool
override this.Is24HourModeEnabled : unit -> bool

Returns

true if time should be displayed in 24-hour format, false if it should be displayed in 12-hour format.

Attributes

Remarks

Indicates whether the system is currently using the 24-hour mode.

When the system is in 24-hour mode, this view will use the pattern returned by #getFormat24Hour(). In 12-hour mode, the pattern returned by #getFormat12Hour() is used instead.

If either one of the formats is null, the other format is used. If both formats are null, the default formats for the current locale are used.

Java documentation for android.widget.TextClock.is24HourModeEnabled().

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