Android Question Problem with Panels into a TabHost - Solved

PikeDr

Member
Licensed User
Longtime User
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 .o_O...

Sorry for my English...;)
 

Attachments

  • TabError.zip
    37.3 KB · Views: 211

PikeDr

Member
Licensed User
Longtime User
I just saw that if you do the same but without the TabHost, the bug is still there...¿?
 
Upvote 0

PikeDr

Member
Licensed User
Longtime User
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

Erel

B4X founder
Staff member
Licensed User
Longtime User
do you want to say that that error is normal?
This error is expected if you reuse drawables.

Sometimes the designer dont't work good and it is easier to use code for to location the objets...
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

Member
Licensed User
Longtime User
Erel ... located .... I understood where was the error ... thank you very much for the help
 
Upvote 0
Top