简体   繁体   中英

Android how can i fix the xml layout of my application to become like the dimensions of the mobile

The mobile screen am working with is 5+" and the xml graphical layout editor is very small, so the problem that am facing here is when am placing the design on the xml graphical layout everything is looking good, but when debugging on the device the dimensions are all wrong.

How can i make the graphical layout editor the same size as my actual device, so that i wouldn't have to keep guessing what will work and what will not.

At the top left of the layout editor, there's a dropdown with sizes and screen resolutions. Select your device's screen size from that to preview it as if it were on that device. You're likely looking for either 5.1in WGVA or 5.4in FWVGA .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM