TextEmphasisSpan


@UnstableApi
public final class TextEmphasisSpan implements LanguageFeatureSpan


A styling span for text emphasis marks.

These are pronunciation aids such as Japanese boutens which can be rendered using the text-emphasis CSS property.

Summary

Nested types

@Documented
@Retention(value = SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = )
public annotation TextEmphasisSpan.MarkFill

The possible mark fills that can be used.

@Documented
@Retention(value = SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = )
public annotation TextEmphasisSpan.MarkShape

The possible mark shapes that can be used.

Constants

static final int
static final int
static final int
static final int
static final int
static final int
static final int

Public fields

int

The mark fill for the text emphasis mark.

int

The mark shape used for text emphasis.

final int

The position of the text emphasis relative to the base text.

Public constructors

TextEmphasisSpan(
    @TextEmphasisSpan.MarkShape int shape,
    @TextEmphasisSpan.MarkFill int fill,
    @TextAnnotation.Position int position
)

Public methods

static TextEmphasisSpan
Bundle

Constants

MARK_FILL_FILLED

public static final int MARK_FILL_FILLED = 1

MARK_FILL_OPEN

public static final int MARK_FILL_OPEN = 2

MARK_FILL_UNKNOWN

public static final int MARK_FILL_UNKNOWN = 0

MARK_SHAPE_CIRCLE

public static final int MARK_SHAPE_CIRCLE = 1

MARK_SHAPE_DOT

public static final int MARK_SHAPE_DOT = 2

MARK_SHAPE_NONE

public static final int MARK_SHAPE_NONE = 0

MARK_SHAPE_SESAME

public static final int MARK_SHAPE_SESAME = 3

Public fields

markFill

@TextEmphasisSpan.MarkShape
public int markFill

The mark fill for the text emphasis mark.

markShape

@TextEmphasisSpan.MarkShape
public int markShape

The mark shape used for text emphasis.

position

@TextAnnotation.Position
public final int position

The position of the text emphasis relative to the base text.

Public constructors

TextEmphasisSpan

public TextEmphasisSpan(
    @TextEmphasisSpan.MarkShape int shape,
    @TextEmphasisSpan.MarkFill int fill,
    @TextAnnotation.Position int position
)

Public methods

fromBundle

public static TextEmphasisSpan fromBundle(Bundle bundle)

toBundle

public Bundle toBundle()