By default, the buttons in ICS are a little bit transparent. I would like to accomplish that the button keeps all its properties (shape, color, state pressed), but than make it opaque.
How could I achieve that?
Thanks in advance!
You can create a style for the button extending the default style (if you are using Holo.Light):
<style name="GreenButton" parent="android:Widget.Holo.Button">
<item name="android:background">#00ff00</item>
</style>
Then apply the style manually to the button with the style attribute or, if you want to change all buttons, set the buttonStyle in your app's theme:
<style name="AppTheme" parent="android:Theme.Holo">
<item name="android:buttonStyle">@style/GreenButton</item>
</style>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With