Displaying total number as text for multiple pins with one pin at the same location in map in android

StackOverflow https://stackoverflow.com/questions/12914801

سؤال

Displaying total number as text for multiple pins at the same location in map in android

I have 5 images to display on same latitude and longitude.. so I want to give total number as text with one image.. and when I click on that image than display all 5 images in grid view... so how to display total number as text for multiple pins with the one pin at the same location?

a busy cat ![two muppets][1]

هل كانت مفيدة؟

المحلول

Here is my question and answer where u can dynamically number your pin's text. Check it and let me know if you need any help.

How to Create Dynamically numbered Pin Pointers on MapView?

نصائح أخرى

You can use BadgeView here and add Text over the ImageView and you can update the text of the Badge every time you get the update.

Pseudo code,

BadgeView badge = new BadgeView(mContext, your_image_view);
badgeViewCart.setText(updated_data);
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top