So I\'m setting a button\'s background doing this:
b.setBackgroundResource(R.drawable.custom_button1);
How do I programmatically set it bac
first get the default background of Button b; using
Button b;
Drawable d = b.getBackground();
then set another background of your choice
if you need default background again use this
b.setBackgroundDrawable(d);