Argh, is there any documentation/examples which demonstrate how to draw a pin which resizes to the short String it holds? This relatively easy problem is causing me major headaches ;)
On Dec 12, 11:34 am, mscwd01 <[email protected]> wrote: > Thanks for your reply... > > One question though... > > How do you "stretch" the pin to enclose your complete String? I am > enclosing peoples names within each pin and obviously some names are > longer than others. > > Also is the pin png used by the Google Maps application available > somewhere? > > Oh and being new to all this - I know how to draw a single drawable, > but how would you draw a String of text inside a drawable? > > Thanks > > On Dec 12, 11:12 am, Charlie Collins <[email protected]> > wrote: > > > You can draw whatever you want on top of the map with overlays. The > > pin is the drawable though, not "instead of." Use the fancy pin as > > your drawable if you want. OverlayItem works for ItemizedOverlay, if > > you have a bunch of items to draw it's convenient. You can also just > > draw your own stuff with your own Overlay. > > > If you want the fancy pin and a text box like that *at the same time* > > and not as a result of a tap or click, then you could make that entire > > thing your drawable for OverlayItem. > > > On the other hand, what is more common is standard pins and then some > > more information in a box when the user taps a pin. I do this with > > AlertDialogs and such (through ItemizedOverlays onTap), because the > > boxes are already drawn and easy to use. But, you could just have > > another overlay and draw the white rounded box with pointer and text > > yourself - again you can "draw" anything in the draw method. (Draw > > gives you a Canvas where you can draw lines, circlies, pictures, add > > bitmaps, text, whatever you want.) > > > On Dec 12, 5:55 am, mscwd01 <[email protected]> wrote: > > > > Anyone? > > > > On Dec 12, 1:40 am, mscwd01 <[email protected]> wrote: > > > > > Oh, and if its not possible - does anyone have any tips on how to > > > > emulate such a map pin? > > > > > On Dec 11, 11:29 pm, mscwd01 <[email protected]> wrote: > > > > > > Similar to > > > > > this:http://www.webmonkey.com/mediawiki/images/Android_streetview.jpg > > > > > > On Dec 11, 11:26 pm, mscwd01 <[email protected]> wrote: > > > > > > > I want to know how to create a map "pin" such as the one used in the > > > > > > Google Maps app, shown when you search for a particular address. The > > > > > > white "balloon" which contains short String to denote what the pin > > > > > > is > > > > > > representing. > > > > > > > Instead of adding a drawable for my pin in an OverlayItem, I would > > > > > > rather use the pin above and incluce my own short String. > > > > > > > Is there an easy way to create this kind of pin or is it unique to > > > > > > the > > > > > > Google Maps application? > > > > > > > Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

