PikeDr Member Licensed User Longtime User Mar 5, 2017 #1 Hi, I have a very strange problem placing multiple panels into a TabHost. If I only paint a panel, everything goes correctly, but when I add 2 or more, the problems begin. The application paint all the panels with the height of the last one. I think it is easier to understand if I put the code, to see if anyone can give me a clue. In the sample, when the app starts everything is correct, but when you select the edittext, the first panel is rescued with the height of the second one. Thanks in advance, I'm going crazy .... Sorry for my English... Attachments TabError.zip TabError.zip 37.3 KB · Views: 446
Hi, I have a very strange problem placing multiple panels into a TabHost. If I only paint a panel, everything goes correctly, but when I add 2 or more, the problems begin. The application paint all the panels with the height of the last one. I think it is easier to understand if I put the code, to see if anyone can give me a clue. In the sample, when the app starts everything is correct, but when you select the edittext, the first panel is rescued with the height of the second one. Thanks in advance, I'm going crazy .... Sorry for my English...
PikeDr Member Licensed User Longtime User Mar 5, 2017 #2 I just saw that if you do the same but without the TabHost, the bug is still there...¿? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 6, 2017 #3 1. I recommend you to use the designer to implement the interface. It will be simpler and will work better. 2. Don't use the same drawable with multiple controls. Upvote 0
1. I recommend you to use the designer to implement the interface. It will be simpler and will work better. 2. Don't use the same drawable with multiple controls.
PikeDr Member Licensed User Longtime User Mar 6, 2017 #4 So, Erel...do you want to say that that error is normal? Sometimes the designer dont't work good and it is easier to use code for to location the objets... Upvote 0
So, Erel...do you want to say that that error is normal? Sometimes the designer dont't work good and it is easier to use code for to location the objets...
Erel B4X founder Staff member Licensed User Longtime User Mar 6, 2017 #5 PikeDr said: do you want to say that that error is normal? Click to expand... This error is expected if you reuse drawables. PikeDr said: Sometimes the designer dont't work good and it is easier to use code for to location the objets... Click to expand... I'm not sure what you mean with "don't work good" but once you understand how to use the designer you will see that it is simpler. Start with using anchors. Upvote 0
PikeDr said: do you want to say that that error is normal? Click to expand... This error is expected if you reuse drawables. PikeDr said: Sometimes the designer dont't work good and it is easier to use code for to location the objets... Click to expand... I'm not sure what you mean with "don't work good" but once you understand how to use the designer you will see that it is simpler. Start with using anchors.
PikeDr Member Licensed User Longtime User Mar 6, 2017 #6 Erel ... located .... I understood where was the error ... thank you very much for the help Upvote 0