Google は、黒人コミュニティに対する人種平等の促進に取り組んでいます。取り組みを見る

androidx.core.text

Interfaces

TextDirectionHeuristicCompat

Interface for objects that use a heuristic for guessing at the paragraph direction by examining text.

Classes

BidiFormatter

Utility class for formatting text for display in a potentially opposite-directionality context without garbling.

HtmlCompat

Backwards compatible version of Html.

ICUCompat

PrecomputedTextCompat

A text which has the character metrics data.

TextDirectionHeuristicsCompat

Some objects that implement TextDirectionHeuristic.

TextUtilsCompat

Backwards compatible version of TextUtils.

Top-level functions summary

SpannedString

Builds new string by populating a newly created SpannableStringBuilder using the provided builderAction and then converting it to SpannedString.

Extension functions summary

For android.text.Spannable
Unit

Clear all spans from this text.

operator Unit
Spannable.set(start: Int, end: Int, span: Any)

Add span to the range start…end of the text.

operator Unit
Spannable.set(range: IntRange, span: Any)

Add span to the range of the text.

For android.text.SpannableStringBuilder
SpannableStringBuilder
SpannableStringBuilder.backgroundColor(@ColorInt color: Int, builderAction: SpannableStringBuilder.() -> Unit)

Wrap appended text in builderAction in a BackgroundColorSpan.

SpannableStringBuilder

Wrap appended text in builderAction in a bold StyleSpan.

SpannableStringBuilder
SpannableStringBuilder.color(@ColorInt color: Int, builderAction: SpannableStringBuilder.() -> Unit)

Wrap appended text in builderAction in a ForegroundColorSpan.

SpannableStringBuilder
SpannableStringBuilder.inSpans(vararg spans: Any, builderAction: SpannableStringBuilder.() -> Unit)

Wrap appended text in builderAction in spans.

SpannableStringBuilder

Wrap appended text in builderAction in span.

SpannableStringBuilder

Wrap appended text in builderAction in an italic StyleSpan.

SpannableStringBuilder
SpannableStringBuilder.scale(proportion: Float, builderAction: SpannableStringBuilder.() -> Unit)

Wrap appended text in builderAction in a RelativeSizeSpan.

SpannableStringBuilder

Wrap appended text in builderAction in a StrikethroughSpan.

SpannableStringBuilder