myButton.getBackground().setAlpha(200);
can try this in your code.
public abstract void setAlpha (int alpha)
Added to API Level 1
Specify the alpha value for the selection. 0 means completely transparent, and 255 means completely opaque.
source
share