how to add a pin marker on image view in android

后端 未结 2 1043
情深已故
情深已故 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:49

    I have used AndroidImageMap but i don't like how it zooms the image, and you don't have facilities to add custom views as clickable areas.

    Checkout this example project https://github.com/jzafrilla/AndroidImageHostpot I have used https://github.com/chrisbanes/PhotoView/ to get Zoom and Pan functionality.

    Hope this helps...(to me, absolutely yes)

    0 讨论(0)
  • 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
    0 讨论(0)
提交回复
热议问题