class RubySpan


A span used to specify ruby text for a portion of the text.

Ruby text cannot be nested (i.e., ruby text cannot contain further ruby text). Ruby spans also cannot overlap each other.

This span is designed for use with VerticalTextLayout.

Summary

Nested types

Builder class for creating RubySpan instances.

Public properties

Int

The text orientation of the ruby text.

CharSequence

The ruby text to be displayed adjacent to the base text.

Float

The text scale ratio of the ruby text relative to the base text.

Public properties

orientation

Added in 1.0.0-alpha01
val orientationInt

The text orientation of the ruby text. Defaults to TextOrientation.MIXED.

text

Added in 1.0.0-alpha01
val textCharSequence

The ruby text to be displayed adjacent to the base text.

textScale

Added in 1.0.0-alpha01
val textScaleFloat

The text scale ratio of the ruby text relative to the base text. Defaults to 0.5f.