Android: how to programmatically switch at the click of a button?

I have a button with 2 different images for the pressed and released state. How to switch state programmatically?

+8
android button android-drawable
source share
1 answer
+26
source share

All Articles