Android Question top panel dissapears when keyboard is opened

leitor79

Active Member
Licensed User
Longtime User
Hi,

I have a layout with a top panel, a middle listbox and a bottom panel.

It's scripted like this:

B4X:
'All variants script
AutoScaleAll
pnlTop.Left=0
pnlTop.Top=0
pnlTop.Width=100%x
pnlTop.Height=50dip

pnlBottom.Left=0
pnlBottom.Top=100%y - 50dip
pnlBottom.Width=100%x
pnlBottom.Height=50dip

lstItems.Top=pnlTop.Height
lstItems.Left=0
lstItems.Width=100%x
lstItems.Height=100%y - pnlBottom.Height

I have an editbox somewhere. When I hit the editbox, the keyboard is opened (good!), but the top panel dissapears. I see the list (I don't know how much of the list since I don't have items there yet), and almost all bottom panel (except for 8 pixeles margin the keyboard overlaps the bottom of the bottom panel)

It's ok this behaviour with my current layout? Should I change the layout, the script or should I do something when the keyboard is opened?

Thank you very much!
 

leitor79

Active Member
Licensed User
Longtime User
Hi Erel,


Thank you for your answer.

I've read that, but I'm puzzled... I don't follow the logic of the keyboard redimension...

If the opened keyboard changes the screen or layout or activity size... shouldn't the top panel be located at the same position because how it's defined the script?

pnlTop.Left=0
pnlTop.Top=0
pnlTop.Width=100%x
pnlTop.Height=50dip

Thank you very much!
 
Last edited:
Upvote 0
Top