Stay organized with collections
Save and categorize content based on your preferences.
DisplayWidth
class DisplayWidth
Field display name width constants for getFieldDisplayName
Summary
Enum values |
An abbreviated field name (may be the same as the wide version, if short enough)
|
The shortest possible field name (may be the same as the abbreviated version)
|
The full field name
|
Enum values
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# DateTimePatternGenerator.DisplayWidth\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nDisplayWidth\n============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/icu/text/DateTimePatternGenerator.DisplayWidth \"View this page in Java\") \n\n```\nclass DisplayWidth\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.DateTimePatternGenerator.DisplayWidth](#)\\\u003e ||\n| | ↳ | [android.icu.text.DateTimePatternGenerator.DisplayWidth](#) |\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [DateTimePatternGenerator.DisplayWidth.ABBREVIATED](#ENUM_VALUE:ABBREVIATED), [DateTimePatternGenerator.DisplayWidth.NARROW](#ENUM_VALUE:NARROW), [DateTimePatternGenerator.DisplayWidth.WIDE](#ENUM_VALUE:WIDE) |------------------------------------------------------------------------------|----------------------------------------------------------------------------------| | [DateTimePatternGenerator.DisplayWidth.ABBREVIATED](#ENUM_VALUE:ABBREVIATED) | An abbreviated field name (may be the same as the wide version, if short enough) | | [DateTimePatternGenerator.DisplayWidth.NARROW](#ENUM_VALUE:NARROW) | The shortest possible field name (may be the same as the abbreviated version) | | [DateTimePatternGenerator.DisplayWidth.WIDE](#ENUM_VALUE:WIDE) | The full field name | |\n\nField display name width constants for getFieldDisplayName\n\nSummary\n-------\n\n| Enum values ||\n|-------------------------------------------------------------------------------------------------------------------------|---|\n| [ABBREVIATED](#ENUM_VALUE:ABBREVIATED) An abbreviated field name (may be the same as the wide version, if short enough) |\n| [NARROW](#ENUM_VALUE:NARROW) The shortest possible field name (may be the same as the abbreviated version) |\n| [WIDE](#ENUM_VALUE:WIDE) The full field name |\n\nEnum values\n-----------\n\n### ABBREVIATED\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val ABBREVIATED : DateTimePatternGenerator.DisplayWidth\n```\n\nAn abbreviated field name (may be the same as the wide version, if short enough) \n\n### NARROW\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val NARROW : DateTimePatternGenerator.DisplayWidth\n```\n\nThe shortest possible field name (may be the same as the abbreviated version) \n\n### WIDE\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val WIDE : DateTimePatternGenerator.DisplayWidth\n```\n\nThe full field name"]]