0

I am working on an android application that requires me to give an option of marking objects as favorite. I am planning of creating a clickable star on the right corner of the toolbar. So, when I click on that star it should become yellow and should be dull color star otherwise. Is there a way I can do that ?

Puneet Chugh
  • 93
  • 10

1 Answers1

0

You can create two images. One of the star without the yellow background. set an on click listener for it. and on click you can change the image to the one which has the yellow background. hope this helps

AxeManTOBO
  • 487
  • 1
  • 4
  • 17