Open ghost opened 6 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 } } } }
Up