I have a situation where I need to set a background on a LinearLayout programatically.
In my layout, I am setting my background using `android:background=\"?android:att
try this
rootLayout.setBackgroundResource(R.drawable.image);