05/24/2017, 6:59 AM
@yan I’ve tried your solution and it works, however my style is applied after the view is constructed in my layouts. So when I set typeface in my layout, its overriden in my AnkoContext 😕 I know why is that happening but I cant really come with some universal solution. I`ve done check like
Copy code
applyStyle<TextView>(viewGroup = view, style = {
    // set typeface only if it was not previously set
    if (typeface == Typeface.DEFAULT) {
      typeface = regular
but its not ideal and not scalable for different views and multiple attributes