Skip to content

ws1-framework/com.airwatch.ui.widget/AWEditText/setTypeface

setTypeface

open fun setTypeface(ctx: Context, fontId: Int): Boolean

Sets the font style of the TextView based on the passed fontId.

Parameters

Name Description
ctx Non-null Application/activity context.
fontId Integer value to set font:1 - Roboto-Bold 2 - Roboto-Light 3 - Roboto-Medium 4 - Roboto-Regular for pre API 16 default to Roboto Regular if font file included

Return

true if font style is set else false.