Android. How do I keep a button displayed as PRESSED until the action created by that button is finished?
Posted
by
user527405
on Stack Overflow
See other posts from Stack Overflow
or by user527405
Published on 2011-01-12T22:51:30Z
Indexed on
2011/01/12
22:53 UTC
Read the original article
Hit count: 133
I have button_focused, button_pressed, and button_normal images. When I press the button, the button_pressed image is displayed and the action related to the button pressing begins.
When I quit pressing the button, the action continues but the button returns to button_normal image being displayed.
How can I set the button image being displayed to button_pressed during the entire action then reset to the button_normal image?
Thank you for your time
© Stack Overflow or respective owner