Jump to content
JusJJ

Button with changing image

Recommended Posts

I have an android app for which I would like two functions for one button.
The button would be an image that changes according to the event.
What would be the best way to do such a function?

Share this post


Link to post

Easy way changing imageindex, but need a ImageList or equivalent.

Personally, most often, I use SVG directly or loaded in resource

You can also change, add/change buttonstyle and applystylelookup

Share this post


Link to post

Or have two buttons in the same position on the screen and make only one visible at any one time....

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×