tabs and map

Put your problem here if it does not fit any of the other categories.

tabs and map

Postby Alok Upadhyay » Tue Mar 08, 2011 4:21 pm

i am working from i week on map view based tutorial and finally got this done.What approach i have followed is that:
1. i have used the single activity in which user enters a location name in text box. soon as the search button is clicked location name is converted into lat and lan using geocoder class.
3.then passing this lan and lat to a method returning location on the map.

Now i want to do some R&D with this code through tabviews.
1.i want initially a single tab consisting of only textbox and search button.
2.When user click on search button new tab should be open showing location that was entered into textbox.

Please guide me !
Alok upadhyay,
Alok Upadhyay
Posts: 2
Joined: Fri Oct 22, 2010 6:26 am


Re: tabs and map

Postby JoxTraex » Wed Mar 09, 2011 3:38 am

You can set the contents of a tab to a mapview if you REALLY want to. and then In another tab have another layout for it to use, its pretty simple, host holds your tabs. In your XML make sure you follow the design patterns in order for your tabs to work, otherwise it won't work.
Posts: 25
Joined: Wed Jan 26, 2011 12:29 am


Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 12 guests