Normally the buttons have this nice looking formatting. For most of my program i want to change my button background to an invisible background, and i use
myButton.setBackgroundColor(Color.TRANSPARENT);
so i can still see the text but not the background. then later on i do
myButton.setBackgroundColor(Color.GREY);
but my button just looks like a grey textbox with text, it loses all its nice button formatting. how can i change it back to have the nice default button feel? am i making the background invisible incorrectly?
you could save the drawable of the button and set it back to how it was later: