docs/doc/reference/com/google/android/exoplayer2/text/span/RubySpan.html
Package com.google.android.exoplayer2.text.span
All Implemented Interfaces:LanguageFeatureSpan
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classRubySpanextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[LanguageFeatureSpan](LanguageFeatureSpan.html "interface in com.google.android.exoplayer2.text.span")
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
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.
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| @com.google.android.exoplayer2.text.span.TextAnnotation.Position int | position |
Deprecated.
The position of the ruby text relative to the base text.
|
| String | rubyText |
Deprecated.
The ruby text, i.e. |
Constructors | Constructor | Description |
| --- | --- |
| RubySpan(String rubyText, @com.google.android.exoplayer2.text.span.TextAnnotation.Position int position) |
Deprecated.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")rubyText
Deprecated.
The ruby text, i.e. the smaller explanatory characters.
-
public final @com.google.android.exoplayer2.text.span.TextAnnotation.Position int position
Deprecated.
The position of the ruby text relative to the base text.
-
public RubySpan([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")rubyText,
@com.google.android.exoplayer2.text.span.TextAnnotation.Position int position)
Deprecated.