Tuto WINDEV Mobile 25

42 Part 2: Android application 6.  The window orientation changes on the screen. In our example, the button location does not change: it does not adapt to the screen orientation. ▶ We are now going to modify our window in order for the "Display" Button control to be centered and to remain centered regardless of the device orientation. ▶ Stop the test and go back to the editor. ▶ To center the Button control in the window: 1. Select the control (click on the Button control). 2. On the "Alignment" pane, in the "Centering and distribution" group, click "Center in the parent (horz)". ▶ In order for the Button control to remain centered in the window, we are going to use the control anchoring: 1. Select the control if necessary. 2. Display the popup menu (right mouse click).

RkJQdWJsaXNoZXIy NDQ0OA==