1

I am a newbie to Android. My task is to create a gps icon with toggle action.

Fore example, when the icon is clicked, it should have toggle effect.

enter image description here

When the image is clicked the center should fill with color.

lmiguelvargasf
  • 63,191
  • 45
  • 217
  • 228

1 Answers1

1

Have a look at this answer:

https://stackoverflow.com/a/11499595

Use a ToggleButton and define a xml resource to change the buttons image depending on it's "activated" state.

Prexx
  • 2,959
  • 5
  • 31
  • 48