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 line
rootLayout.setBackgroundResource(d);
instead of
rootLayout.setBackgroundDrawable(d);