RubySpan
Artifact: androidx.media3:media3-common
@UnstableApi
public final class RubySpan implements LanguageFeatureSpan
A styling span for ruby text.
The text covered by this span is known as the "base text", and the ruby text is stored in rubyText.
More information on ruby characters and span styling.
Summary
Public fields |
|
|---|---|
final int |
The position of the ruby text relative to the base text. |
final String |
The ruby text, i.e. the smaller explanatory characters. |
Public constructors |
|---|
RubySpan(String rubyText, @TextAnnotation.Position int position) |
Public methods |
|
|---|---|
static RubySpan |
fromBundle(Bundle bundle) |
Bundle |
toBundle() |
Public fields
position
@TextAnnotation.Position
public final int position
The position of the ruby text relative to the base text.