I have an application that in a specific Activity (figure) can be in any of several states, such as draw, erase, select, etc.
To enable these states, I have a button for each in the ActionBar , but one thing I would like to do is show the โuserโ whose state is on by holding the button down or pressed until I turn it off (when they switched by pressing one of the other buttons).
Searches here and elsewhere, I come up to you ... can someone recommend a possible solution? However, I am going to flip my own toolbar, and although this may be my final decision, using ActionBar will significantly speed up the work at this stage.
Thanks.
source share