# MeasureFormat.FormatWidth

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# FormatWidth

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/icu/text/MeasureFormat.FormatWidth "View this page in Java")  

```
class FormatWidth
```

|---|---|------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                              |||
| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\<[android.icu.text.MeasureFormat.FormatWidth](https://developer.android.com/reference/kotlin/android/icu/text/MeasureFormat.FormatWidth#)\> ||
|   | ↳ | [android.icu.text.MeasureFormat.FormatWidth](https://developer.android.com/reference/kotlin/android/icu/text/MeasureFormat.FormatWidth#) |

|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [MeasureFormat.FormatWidth.NARROW](https://developer.android.com/reference/kotlin/android/icu/text/MeasureFormat.FormatWidth#ENUM_VALUE:NARROW),[MeasureFormat.FormatWidth.NUMERIC](https://developer.android.com/reference/kotlin/android/icu/text/MeasureFormat.FormatWidth#ENUM_VALUE:NUMERIC),[MeasureFormat.FormatWidth.SHORT](https://developer.android.com/reference/kotlin/android/icu/text/MeasureFormat.FormatWidth#ENUM_VALUE:SHORT),[MeasureFormat.FormatWidth.WIDE](https://developer.android.com/reference/kotlin/android/icu/text/MeasureFormat.FormatWidth#ENUM_VALUE:WIDE) |---------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------| | [MeasureFormat.FormatWidth.NARROW](https://developer.android.com/reference/kotlin/android/icu/text/MeasureFormat.FormatWidth#ENUM_VALUE:NARROW)   | Brief.                                                                                                                                     | | [MeasureFormat.FormatWidth.NUMERIC](https://developer.android.com/reference/kotlin/android/icu/text/MeasureFormat.FormatWidth#ENUM_VALUE: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](https://developer.android.com/reference/kotlin/android/icu/text/MeasureFormat.FormatWidth#ENUM_VALUE:SHORT)     | Abbreviate when possible.                                                                                                                  | | [MeasureFormat.FormatWidth.WIDE](https://developer.android.com/reference/kotlin/android/icu/text/MeasureFormat.FormatWidth#ENUM_VALUE:WIDE)       | Spell out everything.                                                                                                                      | |

Formatting width enum.

## Summary

|                                                                                                                              Enum values                                                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [NARROW](https://developer.android.com/reference/kotlin/android/icu/text/MeasureFormat.FormatWidth#ENUM_VALUE:NARROW) Brief.                                                                                                                                       |
| [NUMERIC](https://developer.android.com/reference/kotlin/android/icu/text/MeasureFormat.FormatWidth#ENUM_VALUE:NUMERIC) Identical to NARROW except when formatMeasures is called with an hour and minute; minute and second; or hour, minute, and second Measures. |
| [SHORT](https://developer.android.com/reference/kotlin/android/icu/text/MeasureFormat.FormatWidth#ENUM_VALUE:SHORT) Abbreviate when possible.                                                                                                                      |
| [WIDE](https://developer.android.com/reference/kotlin/android/icu/text/MeasureFormat.FormatWidth#ENUM_VALUE:WIDE) Spell out everything.                                                                                                                            |

## Enum values

### NARROW

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val NARROW : MeasureFormat.FormatWidth
```

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

### NUMERIC

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val NUMERIC : MeasureFormat.FormatWidth
```

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](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val SHORT : MeasureFormat.FormatWidth
```

Abbreviate when possible.  

### WIDE

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val WIDE : MeasureFormat.FormatWidth
```

Spell out everything.