setTypeface

open fun setTypeface(@IdRes id: Int, @Nullable tf: Typeface): TextView

设置字体 setTypeface

Return

TextView

Parameters

id

视图ID

tf

字体


open fun setTypeface(@IdRes id: Int, @Nullable tf: Typeface, style: Int): TextView

设置字体 setTypeface

Return

TextView

Parameters

id

视图ID

tf

字体

style

字体样式