RichUtils / pyxis.uzuki.live.richutilskt.widget / CombinedTextView

CombinedTextView

class CombinedTextView : TextView

Constructors

<init>

CombinedTextView(context: Context, attrs: AttributeSet? = null)

Properties

fontPrimaryText

var fontPrimaryText: String?

fontSecondaryText

var fontSecondaryText: String?

textExtraSpace

var textExtraSpace: Int

textPrimary

var textPrimary: String

textPrimaryColor

var textPrimaryColor: Int

textPrimarySize

var textPrimarySize: Float

textPrimaryStyle

var textPrimaryStyle: Int

textSecondary

var textSecondary: String?

textSecondaryColor

var textSecondaryColor: Int

textSecondarySize

var textSecondarySize: Float

textSecondaryStyle

var textSecondaryStyle: Int

Functions

apply

fun apply(): Unit

Inflate SpannableString using provided value (either TypedArray(XML) or setter(Java)

onFinishInflate

fun onFinishInflate(): Unit

Display in Layout Editor Preview

Extension Functions

getTypefaceSpan

fun View.getTypefaceSpan(fontTypefaceText: String?, fontTypeface: Typeface?): TypefaceSpan?