@Dan S, gave the below statement in this post -> display a still image map
Then using a second ImageView (for the indicator) draw it on top and
move it to the correct place on the screen and make sure the
background in this View is transparent as well as the background of
your indicator
How can I create the second ImageView for my indicator? It should be transparent imageview as well as the indicator image.
UPDATE:
I am asking here on how to overlap my image map ImageView and transparent indicator ImageView in order to mark the current location.
An ImageView is transparent by default.
Your indicator image resource should have a transparent background (e.g. transparent .PNG image).
Just set the ImageView’s imageResource or backgroundResource to the PNG file.
So your code for creating your ImageView will be something like this:
but again, this’s the default and you still have to make sure your image’s background is transparent otherwise the ImageView’s background won’t matter.
UPDATE: following @eros update of the question, here’s an updated answer:
There are two options, i can think of, to achieve positioning of one imageview on top of the other:
personally i like the first option better because future changes won’t force you to repaint the indicator.
here’s a class demonstrating option (1):