I have noticed that the setBackground method for the RelativeLayout object is targeted for API 16 (Android 4.1) and higher, but my application has the targ
Use setBackgroundDrawable() instead. It does the same thing, but it's been deprecated since the new setBackground() method.
setBackground()