Just made this, awesome for TabLayout and things c...
# anko
r
Just made this, awesome for TabLayout and things containing TextViews "somewhere" in general, like Toolbar:
Copy code
var ViewGroup.typeface: Typeface
    get() = throw PropertyWithoutGetterException("typeface")
    set(v) {
        childrenSequence().forEach { child ->
            if (child is TextView) {
                child.typeface = v
            } else if (child is ViewGroup) {
                child.typeface = v
            }
        }
    }
👍 1