Tuto WINDEV Mobile 25
Part 2: Android application 43 3. Select "Anchor": the window for defining anchors is displayed: 4. Select "Horizontally centered" and validate ("OK" button). Remark In the window displayed in the editor, you will notice the little red arrows in the control. These arrows indicate that the control is anchored. ▶ Run the project test on simulator ( among the quick access buttons): • The button is centered in portrait mode. • Change the orientation of simulator. • The button remains centered in landscape mode. Touchscreen management One of the most important aspects of the interface for a mobile application is the touchscreen management. A "multi-touch" feature is a technique allowing the user to interact with a device via several contact points. Handling images is one of the most common multi-touch features. The display size on a phone being reduced, it is often necessary to zoom an image and/or to move inside an image. This allows you to perform a zoom on an image via the contact of 2 fingers moving apart. To manage the "multi-touch", WINDEV Mobile proposes: • Specific options available in the Image control. • Specific WLanguage functions. • Specific optional processes. See the online help for more details.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==