RichUtils / pyxis.uzuki.live.richutilskt.utils / android.content.Context / setTypeface

setTypeface

@JvmOverloads fun Context.setTypeface(layoutRes: Int, parent: ViewGroup? = null, isAttachedRoot: Boolean = false): View?

Set system font into ViewGroup

before use this methods, you should initialize SystemFontEngine, using Application.initializeFontEngine method

Parameters

layoutRes - layout file

parent - ViewGroup object

isAttachedRoot - isAttachedRoot

@JvmOverloads fun Context.setTypeface(view: ViewGroup, parent: ViewGroup? = null, isAttachedRoot: Boolean = false): View?

Set system font into ViewGroup

before use this methods, you should initialize SystemFontEngine, using Application.initializeFontEngine method

Parameters

view - ViewGroup object

parent - ViewGroup object

isAttachedRoot - isAttachedRoot