Possible duplicate:
How to set Opacity (Alpha) for viewing in Android
I want to ask two questions:
1) I want to make the buttons in mine main.xml, but just the first screen looks translucent. It should be such that the background image can be partially viewed through it. But the button should support a normal size and appearance.
2) (This applies to another button in a different view), I changed the background of the buttons using
android:background="#2563EA"
but now when he clicks, he does not change color. how can he reset. also can someone tell me how to give it a new color onClick.
source
share