I have a button with an image background and text. The background alpha should be 0.7 and the text alpha should be 1.0.
<Button
android:background="@drawable/button"
android:alpha="0.7"
android:text="Button"
/>
By this code I get 0.7 alpha for the whole button. Is there a way to change only the drawable alpha?