close
The Wayback Machine - https://web.archive.org/web/20161009121841/https://developer.android.com/reference/android/icu/text/MeasureFormat.FormatWidth.html
Skip to content

Most visited

Recently visited

navigation

MeasureFormat.FormatWidth

public static final enum MeasureFormat.FormatWidth
extends Enum<MeasureFormat.FormatWidth>

java.lang.Object
   ↳ java.lang.Enum<android.icu.text.MeasureFormat.FormatWidth>
     ↳ android.icu.text.MeasureFormat.FormatWidth


Formatting width enum.

Summary

Enum values

MeasureFormat.FormatWidth  NARROW

Brief. 

MeasureFormat.FormatWidth  NUMERIC

Identical to NARROW except when formatMeasures is called with an hour and minute; minute and second; or hour, minute, and second Measures. 

MeasureFormat.FormatWidth  SHORT

Abbreviate when possible. 

MeasureFormat.FormatWidth  WIDE

Spell out everything. 

Public methods

static MeasureFormat.FormatWidth valueOf(String name)
static final FormatWidth[] values()

Inherited methods

BERJAYAFrom class java.lang.Enum
BERJAYAFrom class java.lang.Object
BERJAYAFrom interface java.lang.Comparable

Enum values

NARROW

Added in API level 24
MeasureFormat.FormatWidth NARROW

Brief. Use only a symbol for the unit when possible.

NUMERIC

Added in API level 24
MeasureFormat.FormatWidth NUMERIC

Identical to NARROW except when formatMeasures is called with an hour and minute; minute and second; or hour, minute, and second Measures. In these cases formatMeasures formats as 5:37:23 instead of 5h, 37m, 23s.

SHORT

Added in API level 24
MeasureFormat.FormatWidth SHORT

Abbreviate when possible.

WIDE

Added in API level 24
MeasureFormat.FormatWidth WIDE

Spell out everything.

Public methods

valueOf

Added in API level 24
MeasureFormat.FormatWidth valueOf (String name)

Parameters
name String
Returns
MeasureFormat.FormatWidth

values

Added in API level 24
FormatWidth[] values ()

Returns
FormatWidth[]
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.