add text to a drawable? (maps question)

by Michael Dorin » Wed, 10 Mar 2010 23:26:31 GMT


Sponsored Links
 I am doing a map application and would like to put more than just a
'star' or a 'pin' on the map when it is selected.
Is it possible to make a drawable icon, and shove some text into it?
That way I could have a bit of info and the location tagged.

Thanks,
  Mike

--



add text to a drawable? (maps question)

by Mark Murphy » Wed, 10 Mar 2010 23:29:29 GMT


 


You can certainly have different Drawables per pin at runtime:

 http://github.com/commonsguy/cw-advandroid/tree/master/Maps/ILuvNooYawk/ 

I haven't tried creating a custom Drawable, rendered from a Canvas or
something, so I don't know much about that aspect.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android Training...At Your Office:  http://commonsware.com/training 

--


Sponsored Links