Android Studio - Change image when in different state
<p>I want to have a favorite button on my app like in Gmail</p>

<p><a href="https://i.stack.imgur.com/D9rK0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D9rK0.png" alt="enter image description here"></a></p>

<p>So, when the user click on the star, the star became yellow, and when the user clicked it again, it turn back to normal</p>

<p>How can i make this happen with my custom image?
i have two images</p>

<p>when its not favorited (heart-grey.png)
and when its favorited (heart-red.png)</p>