How to get a Button's background back to default (programmatically)?
Have you tried this?
android.R.drawable.btn_default;
first get the default background of Button b;
using
Drawable d = b.getBackground();
then set another background of your choice
b.setBackgroundResource(R.drawable.custom_button1);
if you need default background again use this
b.setBackgroundDrawable(d);
Use this
b.tr.setBackgroundDrawable(null);