Package com.itxca.spannablex.utils

Types

Link copied to clipboard
data class DrawableSize(@IntRange(from = 0) width: Int, @IntRange(from = 0) height: Int)

CenterImageSpan 的大小配置辅助类

Functions

Link copied to clipboard
fun <T : TextView> Drawable.configTextViewSize(view: T?): Drawable

设置Drawable 大小为TextView 的字体大小

Link copied to clipboard
fun Drawable.drawableSize(width: Int, height: Int = width): Drawable

设置Drawable 大小

Properties

Link copied to clipboard
val String.color: Int

ColorString 2 ColorInt error default is Color.RED

Link copied to clipboard
val Int.dp: Int
Link copied to clipboard
val Int.drawableSize: DrawableSize

快速构建 DrawableSize

Link copied to clipboard
val Int.sp: Int
Link copied to clipboard
val TextView.textSizeInt: Int

获取Int型TextView.getTextSize