Manual Positioning
The controls can be added in the container and window and to accomplish this we have some constants defined in the Control class that will aid in the positioning of the controlers
Positioning on screen
To position a controller on the screen, simply use the ADD method
The add method has some Overloading
If no relative control is added in the method add, the relative control will be the last control added on the screen.
Positioning on the X axis
Positioning on the Y axis
Position with DP
You can also position the control using DP. Just use the UnitsConverter.toPixels()
Control size
To achieve greater precision, it is possible to add and subtract values to the parameters passed in the size of the control
Images
Last updated