TextAnnotation


@UnstableApi
public final 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 = )
public annotation TextAnnotation.Position

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

Constants

static final int

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

static final int

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

static final int

The text annotation position is unknown.

Constants

POSITION_AFTER

public static final int POSITION_AFTER = 2

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

public static final int POSITION_BEFORE = 1

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

public static final int POSITION_UNKNOWN = -1

The text annotation position is unknown.