6

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]

Community
  • 1
  • 1
Dara Saini
  • 293
  • 1
  • 3
  • 15

2 Answers2

4

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?

Community
  • 1
  • 1
Harshad
  • 7,904
  • 3
  • 24
  • 42
2

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);
Lalit Poptani
  • 67,150
  • 23
  • 161
  • 242
  • I am using google map.... so I import com.google.android.maps.GeoPoint; import com.google.android.maps.ItemizedOverlay; import com.google.android.maps.MapView; import com.google.android.maps.OverlayItem; – Dara Saini Oct 16 '12 at 13:25