Tuto WINDEV Mobile 25
136 Part 5: Android and iOS: Developing an application Overview In most cases, an application for mobile can be used in portrait mode and in landscape mode. The interface of a window used in portrait mode can be changed to be used in landscape mode. WINDEV Mobile manages the change of device orientation via anchors. Most of the time, the anchors are sufficient to adapt the display to the different orientations. However, if the interface must change according to the orientation (different positioning of controls in portrait mode and in landscape mode for example), the anchors are not sufficient. To manage a different interface in portrait mode and in landscape mode, WINDEV Mobile gives you the ability to use layouts. ▶ To follow this lesson, open (if necessary) the "WM Managing Products" project that was created in the previous lesson. Answer If the "WM Managing Products" application was not created , a corrected project is available. This project allows you to follow this lesson. To open this intermediate project, in WINDEV Mobile’s home page (Ctrl + <), click "Tutorial" and select "iOS/Android application (With windows)". A corrected project is also available . This project groups all windows developed in this lesson. To open this corrected project, in WINDEV Mobile’s home page (Ctrl + <), click "Tutorial" and select "iOS/Android application (Answer)". Using anchors ▶ The anchors have already been used in the "WIN_Product_form" window. In test mode, we get the following interfaces:
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==