简体   繁体   中英

Android emulator screen size is not same as preview screen

As you can see in below image, I wrote a sting of numbers and their appearance on emulator screen and Preview of Studio is different. On emulator screen on left, I have marked the space with red color, but if you see on the Preview window on the right, there exists no space. How do I make the Preview screen size as same as my emulator screen?

For the emulator, I have set screen size as 5.5 inch and resolution 720x1280. The text size I have set to 66sp in xml file.

在此处输入图片说明

If you just want to change the preview screen size you can select another reference device in the drop down where you currently have the Nexus 4 selected, and change it to the same size as the emulator:
在此处输入图片说明

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