I am using the Android SDK icon-button for refresh (ic_menu_refresh) in a widget and I need to change the selection state when it is pressed. How is this done? Do I define an XML for the button?
I am using the Android SDK icon-button for refresh (ic_menu_refresh) in a widget and
Share
You define the different states in xml via selector.
Sample (esp. see the state-attributes):