Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

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

Enum values

NARROW

added in API level 24
public static final MeasureFormat.FormatWidth NARROW

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

NUMERIC

added in API level 24
public static final 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
public static final MeasureFormat.FormatWidth SHORT

Abbreviate when possible.

WIDE

added in API level 24
public static final MeasureFormat.FormatWidth WIDE

Spell out everything.

Public methods

valueOf

added in API level 24
public static MeasureFormat.FormatWidth valueOf (String name)

Parameters
name String

Returns
MeasureFormat.FormatWidth

values

added in API level 24
public static final FormatWidth[] values ()

Returns
FormatWidth[]