Android Question width of panel in the pane

electro179

Active Member
Licensed User
Longtime User
hello

I have a layout (named secondlayout) with 1 panel and inside 3 elements (2 labels and 1checkbox)

B4X:
Panel_device.Width = 100%x

Label_device_ip.Left = 0dip
Label_device_ip.Width = Panel_device.Width*0.40

Label_device_name.Left = Label_device_ip.Right
Label_device_name.Width = Panel_device.Width*0.40

CheckBox_select.Left = Label_device_name.Right
CheckBox_select.Width = Panel_device.Width*0.20
CheckBox_select.Top = 0dip
CheckBox_select.Height = Panel_device.Height


I have a second layout (main layout for the activity) with 1 panel on the left and 1 panel on the right

I do that
B4X:
rightpanel.loadlayout("secondlayout")

My problem is : the width of Panel_device is 100%x of activity and not 100% of rightpanel

how can I say that the Panel_device takes the whole width of the container in which it is included, in this case rightpanel
 
Top