It looks like we can use the following in RadioButton:
android:button="@drawable/myCustomStateBackground"
but this drawable only takes up the place where the broadcast usually goes. Ideally, I want the whole background on the button to be restrained. Therefore, when pressed, I want the entire button to look as if it is stuck in the pressed state. For this, I was hoping I could do something like:
android:button="null" android:background="@drawable/myCustomStateBackground"
but then the background drawing does not know the state of pressing, as the button attribute does. Is there any way around this?
android
user291701 Sep 14 2018-12-12T00: 00Z
source share