Stay organized with collections
Save and categorize content based on your preferences.
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = ElementType.TYPE_USE)
@IntDef(value = )
public annotation TextAnnotation.Position
The possible positions of the annotation text relative to the base text.
One of:
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-07-17 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-07-17 UTC."],[],[],null,["# TextAnnotation.Position\n=======================\n\nArtifact: [androidx.media3:media3-common](/jetpack/androidx/releases/media3) \n[View Source](https://cs.android.com/search?q=file:androidx/media3/common/text/TextAnnotation.java+class:androidx.media3.common.text.TextAnnotation.Position)\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/media3/common/text/TextAnnotation.Position \"View this page in Kotlin\") \\|Java\n\n\n```\n@Documented\n@Retention(value = RetentionPolicy.SOURCE)\n@Target(value = ElementType.TYPE_USE)\n@IntDef(value = )\npublic annotation TextAnnotation.Position\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nThe possible positions of the annotation text relative to the base text.\n\nOne of:\n\n- [POSITION_UNKNOWN](/reference/androidx/media3/common/text/TextAnnotation#POSITION_UNKNOWN())\n- [POSITION_BEFORE](/reference/androidx/media3/common/text/TextAnnotation#POSITION_BEFORE())\n- [POSITION_AFTER](/reference/androidx/media3/common/text/TextAnnotation#POSITION_AFTER())"]]