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:
This is correct in my case Solve this problem
imageView.setBackgroundResource(images[productItem.getPosition()]);