TabHost

Theera

Expert
Licensed User
Longtime User
Hi ,
I 'm study to code TabHost from the tutorials. Can I do Abstract designer as same as do in vb6? I can add any Tabs easier. I don't understand the tutorial ,and can not download it. I need apply for 3 Tabs while do on the Abstract designer.

Best Regards
Theera:BangHead:
 

Theera

Expert
Licensed User
Longtime User
How can I download TabHost.zip

Hi klaus ,
I see your tutorial about TabHost. I can not download file TabHost.zip.
Please guide to me.

Best Regards
Theera
 
Upvote 0

Ricky D

Well-Known Member
Licensed User
Longtime User
I'm not sure what you want to do.

Here's a code snippet of my code for 2 tabs

B4X:
   'setup the tabs for the tabhost
   TabHost.AddTab("Page1","farePage1")
   TabHost.AddTab("Page2","farePage2")

where TabHost1 is on my designer.

the second parameter is the layout file to load into each tab.

does this help?

regards, Ricky
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
You have three possibilities:
- look at Erels' original TabHost tutorial and download the file
- download the file from the german TabHost tutorial, its the same as Erels' tutorial. The link has been updated.
- download the Beginner's Guide, there you have an explained example with the source code.

You can define one layout file for each Tab and load it with TabHost1.AddTab(Title As String, LayoutFile As String)

Best regards.
 
Last edited:
Upvote 0

Theera

Expert
Licensed User
Longtime User
Thank you all answer,I had ever use TabHost in vb6.0 but I haven't ever use TabHost.Your Tutorial clears me for understand how to layout tabhosts and programming. Thank you again
Best Regards
Theera:)
 
Upvote 0
Top