TextDrawable

A Drawable for mounting text content from a Component.

See also

Component

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun clearColorFilter()
Link copied to clipboard
fun copyBounds(bounds: Rect)
Link copied to clipboard
open fun createFromPath(pathName: String): Drawable
Link copied to clipboard
Link copied to clipboard
open fun createFromStream(is: InputStream, srcName: String): Drawable
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun draw(canvas: Canvas)
Link copied to clipboard
open fun getAlpha(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getColor(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getCurrent(): Drawable
Link copied to clipboard
open fun getDirtyBounds(): Rect
Link copied to clipboard
open fun getHotspotBounds(outRect: Rect)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getLayout(): Layout
Link copied to clipboard
Link copied to clipboard
fun getLevel(): Int
Link copied to clipboard
open fun getMinimumHeight(): Int
Link copied to clipboard
open fun getMinimumWidth(): Int
Link copied to clipboard
open fun getOpacity(): Int
Link copied to clipboard
Link copied to clipboard
open fun getOutline(outline: Outline)
Link copied to clipboard
open fun getOutlineColor(): Int
Link copied to clipboard
Link copied to clipboard
open fun getPadding(padding: Rect): Boolean
Link copied to clipboard
open fun getState(): Array<Int>
Link copied to clipboard
open fun getText(): CharSequence
Link copied to clipboard
Link copied to clipboard
open fun getTextSize(): Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun inflate(r: Resources, parser: XmlPullParser, attrs: AttributeSet)
Link copied to clipboard
open fun invalidateDrawable(drawable: Drawable)
Link copied to clipboard
open fun invalidateSelf()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isProjected(): Boolean
Link copied to clipboard
open fun isStateful(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun mount(text: CharSequence, layout: Layout, userColor: Int, clickableSpans: Array<ClickableSpan>)
open fun mount(text: CharSequence, layout: Layout, userColor: Int, highlightColor: Int)
open fun mount(text: CharSequence, layout: Layout, layoutTranslationY: Float, colorStateList: ColorStateList, userColor: Int, highlightColor: Int, clickableSpans: Array<ClickableSpan>)
open fun mount(text: CharSequence, layout: Layout, layoutTranslationX: Float, layoutTranslationY: Float, clipToBounds: Boolean, colorStateList: ColorStateList, userColor: Int, highlightColor: Int, outlineWidth: Float, outlineColor: Int, @Nullable clickableSpans: Array<ClickableSpan>, @Nullable imageSpans: Array<ImageSpan>, @Nullable spanListener: ClickableSpanListener, @Nullable touchableSpanListener: TouchableSpanListener, @Nullable textOffsetOnTouchListener: TextDrawable.TextOffsetOnTouchListener, highlightStartOffset: Int, highlightEndOffset: Int, clickableSpanExpandedOffset: Float, contextLogTag: String)
Link copied to clipboard
open fun mutate(): Drawable
Link copied to clipboard
open fun onLayoutDirectionChanged(layoutDirection: Int): Boolean
Link copied to clipboard
open fun onTouchEvent(event: MotionEvent, view: View): Boolean
Link copied to clipboard
open fun resolveOpacity(op1: Int, op2: Int): Int
Link copied to clipboard
open fun scheduleDrawable(drawable: Drawable, runnable: Runnable, l: Long)
Link copied to clipboard
open fun scheduleSelf(what: Runnable, when: Long)
Link copied to clipboard
open fun setAlpha(alpha: Int)
Link copied to clipboard
open fun setAutoMirrored(mirrored: Boolean)
Link copied to clipboard
open fun setBounds(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
Link copied to clipboard
open fun setChangingConfigurations(configs: Int)
Link copied to clipboard
Link copied to clipboard
open fun setDither(dither: Boolean)
Link copied to clipboard
open fun setFilterBitmap(filter: Boolean)
Link copied to clipboard
open fun setHotspot(x: Float, y: Float)
Link copied to clipboard
open fun setHotspotBounds(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
fun setLayoutDirection(layoutDirection: Int): Boolean
Link copied to clipboard
fun setLevel(level: Int): Boolean
Link copied to clipboard
open fun setOutline(outlineWidth: Float, @ColorInt outlineColor: Int)
Link copied to clipboard
open fun setState(stateSet: Array<Int>): Boolean
Link copied to clipboard
open fun setTextColor(@ColorInt textColor: Int)
Link copied to clipboard
open fun setTint(tintColor: Int)
Link copied to clipboard
open fun setTintBlendMode(blendMode: BlendMode)
Link copied to clipboard
open fun setTintList(tint: ColorStateList)
Link copied to clipboard
open fun setTintMode(tintMode: PorterDuff.Mode)
Link copied to clipboard
open fun setVisible(visible: Boolean, restart: Boolean): Boolean
Link copied to clipboard
Link copied to clipboard
open fun unmount()
Link copied to clipboard
open fun unscheduleDrawable(drawable: Drawable, runnable: Runnable)
Link copied to clipboard
open fun unscheduleSelf(what: Runnable)