Log.v(“ThreeTips”, ”#15”)

1 — Mutate your drawable!

val drawable = ContextCompat.getDrawable(context, R.drawable.icon)
drawable.setColorFilter(Color.WHITE)
ContextCompat.getDrawable(context, R.drawable.icon).mutate()

2 — Databinding meets Kotlin

dataBinding {
enabled true
}
//version must be the same than our gradle version
kapt 'com.android.databinding:compiler:3.0.0'

3 — Be aware of style trick

<style name="BigButton"/>

<style name="BigButton.Awesome"/>

<style name="BigButton.Great" parent="SmallButton"/>

Software Engineer at Storytel