I'm using osmdroid on my new Android project (since I want to be able to use offline maps) but I encounter many difficulties to customize the look 'n feel of the information bubble assigned to an overlay item.
Right now, I'm using an ItemizedOverlayWithFocus
overlay to display my items; looking at its code, I noticed the whole thing was drawn in the onDrawFinished
method so I tried to create my own custom overlay to override this method but this is pretty difficult to get a result. What I would love to get is something just like this :
How did you guys managed to get a custom information bubble on your projects?
I found a few classes to implement such a thing for Google's MapView (like Jeff Gilfelt's MapView Balloons) but nothing for osmdroid.
EDIT:
You can get the code from
https://github.com/galex/android-mapviewballoonsyou can get selected balloon from the method of "BalloonItemizedOverlay.java" as follow
To set the data you can use setBalloonData method of BalloonOverlayView.java file as follow:
You should check out this new library, OSM bonus pack. Should do exactly what you want.
http://code.google.com/p/osmbonuspack/