Android : how to reload custom markers once the image is downloaded via Picasso?

前端 未结 3 1123
被撕碎了的回忆
被撕碎了的回忆 2020-12-18 08:22

I\'m trying to load dynamically users avatars as custom markers. I based my code on the google maps utils demo, but somehow it doesn\'t work, it loads only one image and all

3条回答
  •  孤城傲影
    2020-12-18 09:05

    Regarding about @Stas Parshin answer, there might be some problems with Glide if you put the request within onBeforeClusterItemRendered().

    I placed it on onClusterItemRendered() and it worked beautifully. It is because Glide is using asynchronous process and might not able to load it into ImageView in time.

    Hope it helps.

提交回复
热议问题