TextEmphasisSpan
Artifact: androidx.media3:media3-common
@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 |
|---|
@DocumentedThe possible mark fills that can be used. |
@DocumentedThe possible mark shapes that can be used. |
Constants |
|
|---|---|
static final int |
MARK_FILL_FILLED = 1 |
static final int |
MARK_FILL_OPEN = 2 |
static final int |
|
static final int |
|
static final int |
MARK_SHAPE_DOT = 2 |
static final int |
MARK_SHAPE_NONE = 0 |
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( |
Public methods |
|
|---|---|
static TextEmphasisSpan |
fromBundle(Bundle bundle) |
Bundle |
toBundle() |
Constants
Public fields
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
)