Im using an ItemizedOverlay with a MapActivity. I want to implement
two colored markers.

(MapActivity's onCreate:)
Resources res = getResources();
redMarker = res.getDrawable(R.drawable.red_dot_12x20);
greenMarker = res.getDrawable(R.drawable.green_dot_12x20); // android
bug?

When the OverlayItem is instanced, it gets item.setMarker(redMarker)
or item.setMarker(greenMarker). When the green marker is used, those
items are never displayed on the map. I have tried using
R.drawable.red_dot_12x20 in the code for the greenMarker instead, no
success

If i change greenMarker = redMarker, the code works so it looks like
the second time getDrawable is called, something invalid is returned.
If i print out the object that is assigned to greenMarker from
getDrawable, it says android.graphics.drawable.bitmapdrawa...@433e57d8

Which looks correct. Any ideas? Also, the ItemizedOverlay is created
with the redMarker as the default marker.

Don
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to