I am creating a meditation app. I would like to add a “Favorite” feature: when a user is listening to a song, he can add it as a favorite song and when a song is already a favorite one, the user can remove it from favorites.
To do that, I would like to do like normal apps (like Spotify):
When the users clicks on the empty heart icon, the icon disappears (with the “Sometimes visible” feature in Adalo), the song becomes a favorite and a full heart icon appears, at the same place
When the users clicks on the full heart icon, the icon disappears, the song is not a favorite anymore and the empty heart icon appears, at the same place
So it pretty works when I do that, except the 2 icons are not overlayed:
The best option is with toggle. It is the easiest, the fastest and then it is easy to manage who gave it. The more buttons and visibility you add, the slower the action and navigation of your app will be.
Hey Gary, I have to agree with @Lofi that the “toggle” component will be much better for your UX.
The tutorial video that I made shows how to do the rectangle+2 icons but the toggle component is much faster to respond to the click than the 2 icons with visibility settings.