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:
Use this:
myView.background = ContextCompat.getDrawable(context, R.id.my_drawable)