Android Question Automatically move a Panel down if other Panal visible

Killer

Member
Licensed User
Longtime User
is there a possibility a panel to automatically move down when another panel is visible? With App Inventor is already there by default this.
Until now, I've done this:

if panel1.visible = true then
Panel2.Top = Panel2.Top + 20DIP
Panel3.Top = Panel3.Top + 20DIP
...
...
else
Panel2.Top = 100dip
Panel3.Top = 150dip
...
...


But now when I have about 30 panels, all this is too complicated.
For example, if Panel1, Panel6, and Panel7 are visible, need 8-30 Panel 148dip down further. However, Panel2 and Panel5 visible panel to 6-30 107dip further down.
I hope my question is understood.
Sorry for my bad english. Google Translator is to blame :)
 

Killer

Member
Licensed User
Longtime User
I recommend you to use multiple activities instead of multiple panels. This will be easier.

Another option is to put all the Panels in the List and then go over the list items and hide the "background" panels.



Hello and thank you for your answer. Unfortunately, I did not understand both. For an accurate representation of my problem, I have attached a picture. Can you tell me again please explain exactly how I can do that?
 

Attachments

  • myApp.jpg
    myApp.jpg
    153.3 KB · Views: 387
Upvote 0
Top