Android Question lock buttons in screen

yaniv hanya

Active Member
Licensed User
I have a panel that looks like a popup but even when it covers the whole screen the buttons under it work. How do I lock the entire screen below it while it appears
 

yaniv hanya

Active Member
Licensed User
B4X:
Private p As Panel

B4X:
p.Initialize("")   
p.LoadLayout("SetWaterLevelLy")
Activity.AddView(p,0,0,100%x,100%y)
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
There is a small mistake here:
B4X:
p.Initialize("Panel1")   
p.LoadLayout("SetWaterLevelLy")
Activity.AddView(p,0,0,100%x,100%y)
You should always set the container size before you load the layout. Otherwise features such as anchors and designer script will not work properly.

Correct code:
B4X:
p.Initialize("Panel1")   
Activity.AddView(p,0,0,100%x,100%y)
p.LoadLayout("SetWaterLevelLy")
 
Upvote 0
Top