The second Android 11 Developer Preview is now available, test it out and share your feedback.

BaselineShift

@Immutable data class BaselineShift
kotlin.Any
   ↳ androidx.ui.text.style.BaselineShift

The amount by which the text is shifted up or down from current the baseline.

Summary

Public constructors

<init>(multiplier: Float)


//Unresolved: androidx.ui.text.samples.BaselineShiftSample

Properties

Float

shift the baseline by multiplier * (baseline - ascent)

Companion properties

BaselineShift

Constant for no baseline shift.

BaselineShift

Default baseline shift for subscript

BaselineShift

Default baseline shift for superscript.

Public constructors

<init>

BaselineShift(multiplier: Float)

//Unresolved: androidx.ui.text.samples.BaselineShiftSample

//Unresolved: androidx.ui.text.samples.BaselineShiftAnnotatedStringSample
Parameters
multiplier: Float shift the baseline by multiplier * (baseline - ascent)

Properties

multiplier

val multiplier: Float

shift the baseline by multiplier * (baseline - ascent)

Companion properties

None

val None: BaselineShift

Constant for no baseline shift.

Subscript

val Subscript: BaselineShift

Default baseline shift for subscript

Superscript

val Superscript: BaselineShift

Default baseline shift for superscript.