TextAnnotation


@UnstableApi
class TextAnnotation


Properties of a text annotation (i.e. ruby, text emphasis marks).

Summary

Nested types

@Documented
@Retention(value = SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = )
annotation TextAnnotation.Position

The possible positions of the annotation text relative to the base text.

Constants

const Int

For horizontal text, the text annotation should be positioned below the base text.

const Int

For horizontal text, the text annotation should be positioned above the base text.

const Int

The text annotation position is unknown.

Constants

POSITION_AFTER

const val POSITION_AFTER = 2: Int

For horizontal text, the text annotation should be positioned below the base text.

For vertical text it should be positioned to the left, same as CSS's ruby-position.

POSITION_BEFORE

const val POSITION_BEFORE = 1: Int

For horizontal text, the text annotation should be positioned above the base text.

For vertical text it should be positioned to the right, same as CSS's ruby-position.

POSITION_UNKNOWN

const val POSITION_UNKNOWN = -1: Int

The text annotation position is unknown.