I am trying to make a button with a selector my button can have the following states:
According to
The most easy solution is to set color filter to the background image of and button as I saw here
You can do as follow:
if ('need to set button disable')
button.getBackground().setColorFilter(Color.GRAY, PorterDuff.Mode.MULTIPLY);
else
button.getBackground().setColorFilter(null);
Hope I helped someone...