TabHost example not showing views in designer

Beja

Expert
Licensed User
Longtime User
Hi,
Visual designer is not displaying the panels and edit texts.. I am not so good at imagining views locations on the activity programaticaly.
Is there anyway to render or make visible the views in design time?

Thanks so much for your help in advance.
 

klaus

Expert
Licensed User
Longtime User
You should define one layout file for each Tab and load them with TabHost1.AddTab(Title, LayoutName)

What TabHostExample are you speaking of ?
In the Beginner's Guide you find an example with three Tabs.
The project contains 4 layout files one main layout and three page layout files one for each Tab.

Best regards.
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
Klaus,
thanks and sorry but in the example above there is only one layout "main" that
hosts (and shows) all the 3 tabs and textbox of the sample project.. but when the same project is run from my computer the views are not visible.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Before I posted my answer I had a look at the example from the tutorial.
The project in the first post of the link in your post #3 has 4 layout files main, page1, page2, and page3 !!!
I don't know what you are looking at and what you are expecting.
Sorry but now I don't understand what your problem is.

Best regards,
 
Upvote 0

Thuong

Member
Licensed User
Longtime User
Klaus,
thanks and sorry but in the example above there is only one layout "main" that
hosts (and shows) all the 3 tabs and textbox of the sample project.. but when the same project is run from my computer the views are not visible.

Dear Beja
I have same your problem. but I solved
in Designer, you select File on menu and see "Main", "Page1", "Page2","Page3"
 
Upvote 0
Top