TextSpec
@MountSpec(isPureRender = true, poolSize = 30, canPreallocate = true, events = [TextOffsetOnTouchEvent::class] )
Component to render text. See text-widget for more details.
Example Text usage:
final SpannableStringBuilder spannable = new SpannableStringBuilder();
spannable.setSpan(new StyleSpan(Typeface.BOLD), start, end, Spannable.SPAN_INCLUSIVE_INCLUSIVE);
Text.create(c)
.text(spannable) // String can be used
.textSizeDip(20)
.maxLines(3)
.ellipsize(TextUtils.TruncateAt.END)
.textColor(Color.BLACK)
.build()
Content copied to clipboard