I have a static background image (map) that loads in my ImageView. I have a couple of transparent text images (labels for cities on the map, for example) that I would like to overlay on the map upon the click of a button. re-clicking the button would unload the layer so that the user could have any combination of the layers selected depending upon what they would like to see. I might have a total of 5 layers connected to 5 buttons.
I know it is simple, but I need some help with the button code. If I have a button called ‘cities’ and a layer called ‘cities.png’ I would like to load and display over my main ImageView map, could someone please please please show me some code that would allow the button click to cycle my cities.png layer on and off?
many thanks
In function
check
This will work if you want to load one image at a time