Stay organized with collections
Save and categorize content based on your preferences.
class FormatWidth
Formatting width enum.
Summary
Enum values |
Brief.
|
Identical to NARROW except when formatMeasures is called with an hour and minute; minute and second; or hour, minute, and second Measures.
|
Abbreviate when possible.
|
Spell out everything.
|
Enum values
NUMERIC
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.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# MeasureFormat.FormatWidth\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nFormatWidth\n===========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/icu/text/MeasureFormat.FormatWidth \"View this page in Java\") \n\n```\nclass FormatWidth\n```\n\n|---|---|-------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\\\u003c[android.icu.text.MeasureFormat.FormatWidth](#)\\\u003e ||\n| | ↳ | [android.icu.text.MeasureFormat.FormatWidth](#) |\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [MeasureFormat.FormatWidth.NARROW](#ENUM_VALUE:NARROW), [MeasureFormat.FormatWidth.NUMERIC](#ENUM_VALUE:NUMERIC), [MeasureFormat.FormatWidth.SHORT](#ENUM_VALUE:SHORT), [MeasureFormat.FormatWidth.WIDE](#ENUM_VALUE:WIDE) |----------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------| | [MeasureFormat.FormatWidth.NARROW](#ENUM_VALUE:NARROW) | Brief. | | [MeasureFormat.FormatWidth.NUMERIC](#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](#ENUM_VALUE:SHORT) | Abbreviate when possible. | | [MeasureFormat.FormatWidth.WIDE](#ENUM_VALUE:WIDE) | Spell out everything. | |\n\nFormatting width enum.\n\nSummary\n-------\n\n| Enum values ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [NARROW](#ENUM_VALUE:NARROW) Brief. |\n| [NUMERIC](#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. |\n| [SHORT](#ENUM_VALUE:SHORT) Abbreviate when possible. |\n| [WIDE](#ENUM_VALUE:WIDE) Spell out everything. |\n\nEnum values\n-----------\n\n### NARROW\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val NARROW : MeasureFormat.FormatWidth\n```\n\nBrief. Use only a symbol for the unit when possible. \n\n### NUMERIC\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val NUMERIC : MeasureFormat.FormatWidth\n```\n\nIdentical 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. \n\n### SHORT\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val SHORT : MeasureFormat.FormatWidth\n```\n\nAbbreviate when possible. \n\n### WIDE\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val WIDE : MeasureFormat.FormatWidth\n```\n\nSpell out everything."]]