Beja Expert Licensed User Longtime User Nov 22, 2012 #1 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.
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 Nov 22, 2012 #2 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
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.
Beja Expert Licensed User Longtime User Nov 22, 2012 #3 Thanks Klaus, The example I am talking about is this: http://www.b4x.com/forum/basic4android-getting-started-tutorials/6721-tabhost-tutorial.html In the forum the views are there in the designer.. but when I downloaded, unzipped and tried to run it from my machine (without modification), then there were no views showing in the designer window. Upvote 0
Thanks Klaus, The example I am talking about is this: http://www.b4x.com/forum/basic4android-getting-started-tutorials/6721-tabhost-tutorial.html In the forum the views are there in the designer.. but when I downloaded, unzipped and tried to run it from my machine (without modification), then there were no views showing in the designer window.
klaus Expert Licensed User Longtime User Nov 22, 2012 #4 When you load a project and show the Designer and there are more than one layout files you must select one in the File menu. Best regards. Upvote 0
When you load a project and show the Designer and there are more than one layout files you must select one in the File menu. Best regards.
Beja Expert Licensed User Longtime User Nov 22, 2012 #5 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, 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.
klaus Expert Licensed User Longtime User Nov 23, 2012 #6 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
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,
Thuong Member Licensed User Longtime User Dec 10, 2012 #7 Beja said: 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. Click to expand... 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
Beja said: 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. Click to expand... Dear Beja I have same your problem. but I solved in Designer, you select File on menu and see "Main", "Page1", "Page2","Page3"
Thuong Member Licensed User Longtime User Dec 10, 2012 #8 and objects on page1, page2, page3 has difference name Write code on "Main" Upvote 0