dreamer wrote: > Hi, > > I want to show a view containing labels and buttons on lower half of > map when some locations on the map are clicked. > > How do I add view on a mapview? or is there some other way to achieve > this? I would prefer to give layout thru XML. > > This type of thing can also be seen in Commandro at http://www.commandro.net/
To some extent, it should "just work". In your layout XML for your MapActivity, add in the other controls you need in and around the com.google.android.maps.MapView widget. You can even have widgets overlay the map, if that's the effect you want. For instance, in the TourIt sample project from my book, I have a Spinner and ImageButton initially invisible and toggle them visible based on an option menu click. You can grab the source to that project from http://commonsware.com/Android/. I seem to recall learning the technique from some tutorials on anddev.org, so there's probably code up there as well. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch in September! http://www.bignerdranch.com --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

