Android Question B4XSwitch center view

Blueforcer

Well-Known Member
Licensed User
Longtime User
The b4xswitch (added via layout) is always on top=0 of its panel. How can i centered it vertically and horizontally?

1645396560021.png
 

toby

Well-Known Member
Licensed User
Longtime User
Try following designer script
B4X:
B4XSwitch1.HorizontalCenter=50%x
B4XSwitch1.VerticalCenter=50%y
 
Last edited:
Upvote 0
Top