So my sdk goes from 15 to 21 and when I call setBackgroundDrawable(), Android Studio tells me that it\'s deprecated.
setBackgroundDrawable()
I thought of going around it using:
Correct as of 23th November 2018
Kotlin:
view.background = resources.getDrawable(R.drawable.ic_image,theme)
If you include the Theme parameter.