pub enum TimeOfDayFormat {
HH_colon_mm,
HH_dot_mm,
FrenchCanadian,
H_colon_mm,
h_colon_mm_space_a,
a_space_h_colon_mm,
}Expand description
Determines how the time picker invoked using showTimePicker formats and
lays out the time controls.
The time picker provides layout configurations optimized for each of the enum values.
Variants§
HH_colon_mm
Corresponds to the ICU ‘HH:mm’ pattern.
This format uses 24-hour two-digit zero-padded hours. Controls are always laid out horizontally. Hours are separated from minutes by one colon character.
HH_dot_mm
Corresponds to the ICU ‘HH.mm’ pattern.
This format uses 24-hour two-digit zero-padded hours. Controls are always laid out horizontally. Hours are separated from minutes by one dot character.
FrenchCanadian
Corresponds to the ICU “HH ‘h’ mm” pattern used in Canadian French.
This format uses 24-hour two-digit zero-padded hours. Controls are always laid out horizontally. Hours are separated from minutes by letter ‘h’.
H_colon_mm
Corresponds to the ICU ‘H:mm’ pattern.
This format uses 24-hour non-padded variable-length hours. Controls are always laid out horizontally. Hours are separated from minutes by one colon character.
h_colon_mm_space_a
Corresponds to the ICU ‘h:mm a’ pattern.
This format uses 12-hour non-padded variable-length hours with a day
period. Controls are laid out horizontally in portrait mode. In landscape
mode, the day period appears vertically after (consistent with the ambient
TextDirection) hour-minute indicator. Hours are separated from minutes
by one colon character.
a_space_h_colon_mm
Corresponds to the ICU ‘a h:mm’ pattern.
This format uses 12-hour non-padded variable-length hours with a day
period. Controls are laid out horizontally in portrait mode. In landscape
mode, the day period appears vertically before (consistent with the
ambient TextDirection) hour-minute indicator. Hours are separated from
minutes by one colon character.
Trait Implementations§
Source§impl Clone for TimeOfDayFormat
impl Clone for TimeOfDayFormat
impl Copy for TimeOfDayFormat
Source§impl Debug for TimeOfDayFormat
impl Debug for TimeOfDayFormat
impl Eq for TimeOfDayFormat
Source§impl Hash for TimeOfDayFormat
impl Hash for TimeOfDayFormat
Source§impl PartialEq for TimeOfDayFormat
impl PartialEq for TimeOfDayFormat
impl StructuralPartialEq for TimeOfDayFormat
Auto Trait Implementations§
impl Forget for TimeOfDayFormat
impl Freeze for TimeOfDayFormat
impl Move for TimeOfDayFormat
impl RefUnwindSafe for TimeOfDayFormat
impl Send for TimeOfDayFormat
impl Sync for TimeOfDayFormat
impl Unpin for TimeOfDayFormat
impl UnsafeUnpin for TimeOfDayFormat
impl UnwindSafe for TimeOfDayFormat
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.