Stay organized with collections
Save and categorize content based on your preferences.
DisplayLength
class DisplayLength
Represents all the display lengths.
Summary
Enum values |
Uses full names when generating a locale name, e.
|
Use short names when generating a locale name, e.
|
A possible setting for DisplayLength.
|
Enum values
UNDEFINED
enum val UNDEFINED : DisplayOptions.DisplayLength
A possible setting for DisplayLength. The DisplayLength context to be used is unknown (this is the default value).
Properties
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,["# DisplayOptions.DisplayLength\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nDisplayLength\n=============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/icu/text/DisplayOptions.DisplayLength \"View this page in Java\") \n\n```\nclass DisplayLength\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.DisplayOptions.DisplayLength](#)\\\u003e ||\n| | ↳ | [android.icu.text.DisplayOptions.DisplayLength](#) |\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [DisplayOptions.DisplayLength.LENGTH_FULL](#ENUM_VALUE:LENGTH_FULL), [DisplayOptions.DisplayLength.LENGTH_SHORT](#ENUM_VALUE:LENGTH_SHORT), [DisplayOptions.DisplayLength.UNDEFINED](#ENUM_VALUE:UNDEFINED) |-----------------------------------------------------------------------|---------------------------------------------------| | [DisplayOptions.DisplayLength.LENGTH_FULL](#ENUM_VALUE:LENGTH_FULL) | Uses full names when generating a locale name, e. | | [DisplayOptions.DisplayLength.LENGTH_SHORT](#ENUM_VALUE:LENGTH_SHORT) | Use short names when generating a locale name, e. | | [DisplayOptions.DisplayLength.UNDEFINED](#ENUM_VALUE:UNDEFINED) | A possible setting for DisplayLength. | |\n\nRepresents all the display lengths.\n\nSummary\n-------\n\n| Enum values ||\n|--------------------------------------------------------------------------------------------|---|\n| [LENGTH_FULL](#ENUM_VALUE:LENGTH_FULL) Uses full names when generating a locale name, e. |\n| [LENGTH_SHORT](#ENUM_VALUE:LENGTH_SHORT) Use short names when generating a locale name, e. |\n| [UNDEFINED](#ENUM_VALUE:UNDEFINED) A possible setting for DisplayLength. |\n\n| Properties ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|\n| static [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\\\u003c[DisplayOptions.DisplayLength](#)!\\\u003e! | [VALUES](#VALUES:kotlin.collections.MutableList) Unmodifiable List of all display lengths constants. |\n\nEnum values\n-----------\n\n### LENGTH_FULL\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val LENGTH_FULL : DisplayOptions.DisplayLength\n```\n\nUses full names when generating a locale name, e.g. \"United States\" for US. \n\n### LENGTH_SHORT\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val LENGTH_SHORT : DisplayOptions.DisplayLength\n```\n\nUse short names when generating a locale name, e.g. \"U.S.\" for US. \n\n### UNDEFINED\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val UNDEFINED : DisplayOptions.DisplayLength\n```\n\nA possible setting for DisplayLength. The DisplayLength context to be used is unknown (this is the default value).\n\nProperties\n----------\n\n### VALUES\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val VALUES: MutableList\u003cDisplayOptions.DisplayLength!\u003e!\n```\n\nUnmodifiable List of all display lengths constants. List version of [values()](#)."]]