Stay organized with collections
Save and categorize content based on your preferences.
Alignment
class Alignment
Summary
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# Layout.Alignment\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nAlignment\n=========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/text/Layout.Alignment \"View this page in Java\") \n\n```\nclass Alignment\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.text.Layout.Alignment](#)\\\u003e ||\n| | ↳ | [android.text.Layout.Alignment](#) |\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [Layout.Alignment.ALIGN_CENTER](#ENUM_VALUE:ALIGN_CENTER), [Layout.Alignment.ALIGN_NORMAL](#ENUM_VALUE:ALIGN_NORMAL), [Layout.Alignment.ALIGN_OPPOSITE](#ENUM_VALUE:ALIGN_OPPOSITE) |---------------------------------------------------------------|--------| | [Layout.Alignment.ALIGN_CENTER](#ENUM_VALUE:ALIGN_CENTER) | \u003cbr /\u003e | | [Layout.Alignment.ALIGN_NORMAL](#ENUM_VALUE:ALIGN_NORMAL) | \u003cbr /\u003e | | [Layout.Alignment.ALIGN_OPPOSITE](#ENUM_VALUE:ALIGN_OPPOSITE) | \u003cbr /\u003e | |\n\nSummary\n-------\n\n| Enum values ||\n|-----------------------------------------------------|---|\n| [ALIGN_CENTER](#ENUM_VALUE:ALIGN_CENTER) \u003cbr /\u003e |\n| [ALIGN_NORMAL](#ENUM_VALUE:ALIGN_NORMAL) \u003cbr /\u003e |\n| [ALIGN_OPPOSITE](#ENUM_VALUE:ALIGN_OPPOSITE) \u003cbr /\u003e |\n\nEnum values\n-----------\n\n### ALIGN_CENTER\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val ALIGN_CENTER : Layout.Alignment\n``` \n\n### ALIGN_NORMAL\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val ALIGN_NORMAL : Layout.Alignment\n``` \n\n### ALIGN_OPPOSITE\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val ALIGN_OPPOSITE : Layout.Alignment\n```"]]