Recommended Posts

I need to change button appearance after it was clicked. Before I click, it is Standard style but after clicked, it became flat.
The purpose of this is as an indicator so that users recognize that they has clicked the button.
How to do that?
Thank you very much..

bear in mind that with such an approach, although the button will change style to show it has been clicked, it will still be clickable.

If you are doing this to stop the user from clicking it twice, then you may also want to look at setting the button to disabled. Note that doing this will also change the appearance of the button, so simply doing this and not changing its style may be enough.