pierrem Member Licensed User Longtime User Dec 25, 2014 #1 Hi, please, see in the joined zip file ... from the map example available in this forum My first wish was to include a map in an tabhost. I found that it works if the maps is added to the 1st tab, but not in the 2nd. Don't understand why, nor how to work around this. Also, If I add the 'mapPanel' directly to the tabHost, it doesn't show because I can't set the layout (ie, top-left-width-height). Thanks for your explanation ... and help ! Attachments GMap-in-tabhost.zip GMap-in-tabhost.zip 7.1 KB · Views: 273
Hi, please, see in the joined zip file ... from the map example available in this forum My first wish was to include a map in an tabhost. I found that it works if the maps is added to the 1st tab, but not in the 2nd. Don't understand why, nor how to work around this. Also, If I add the 'mapPanel' directly to the tabHost, it doesn't show because I can't set the layout (ie, top-left-width-height). Thanks for your explanation ... and help !
Erel B4X founder Staff member Licensed User Longtime User Dec 25, 2014 #2 Set the TabHost.CurrentTab to the map tab before you add the map. Upvote 0
pierrem Member Licensed User Longtime User Dec 25, 2014 #3 So simple ? (Yes, I tryied ...) Thks a lot ! It's the prove I still have a lot to learn ... Upvote 0