GoodieBag / Pinview

A pinview library for android. :sparkles:
MIT License
823 stars 115 forks source link

Add custom font to the piinView? #13

Open ghost opened 6 years ago

kmmpaliza commented 6 years ago

Up

rbyakov commented 5 years ago

pinview.post { val childCount = pinview.childCount for (i in 0..childCount) { val view = pinview.getChildAt(i) if (view is EditText) { view.setTextSize(TypedValue.COMPLEX_UNIT_SP, 20f) context?.let { val face = Typeface.createFromAsset(it.assets, "fonts/googlesans_medium.ttf") view.typeface = face } } } }