how to add a pin marker on image view in android

后端 未结 2 1044
情深已故
情深已故 2020-12-28 11:26

i am working on a project where i need to add pins on image view as shown in below image. how could we do this.

<script

2条回答
  •  长发绾君心
    2020-12-28 11:51

    i found my answer here https://github.com/catchthecows/AndroidImageMap

    An implementation of an HTML map like element in an Android View:

    • Supports images as drawable or bitmap in layout
    • Allows for a list of area tags in xml
    • Enables use of cut and paste HTML area tags to a resource xml (ie, the ability to take an HTML map - and image and use it with minimal editing)
    • Supports panning if the image is larger than the device screen
    • Supports pinch-zoom
    • Supports callbacks when an area is tapped.
    • Supports showing annotations as bubble text and provide callback if the bubble is tapped

提交回复
热议问题