Android inconsistencies of the real machine interface size and MuMu simulator running out of phone screen size of a solution

- recently doing graduate design, as a novice encountered this screen size of the problem, and finally with the "indigenous methods" can be solved. My phone is millet 6x, multiply the screen size is 1080 2160. At first I MuMu simulator interface size adjusted to 1080 multiply 2160, operating results would be like this:
1080 * 2160 simulator operating results
- it all seems like normal, but only with the simulator operating results in the layout of the layout file android studio, It matches a real machine interface running effect of these two effects. To put it plainly satisfactory results layout files to run out on the simulator, but the real machine interface running on the effects on the emmmm. In turn, with a real machine to debug interface layout is over after do not show a satisfactory result on the simulator.
- My solution is: take a screenshot of a real machine, they get 80% of the original size of the screen with a computer drawing software, then re-set simulator screen size.
Step:
1. My real machine (referred to herein as millet 6x) on a cross-sectional screenshot transmitted to the computer (transmitting manner QQ, micro-letters, mail, the data line will do).
2. Open this screenshot (right click - Open - drawing) with a computer drawing software.
3. Click resized in drawing software's home page toolbar original size adjusted to 80% as a percentage (to maintain aspect ratio) in accordance with (this figure is adjusted according to demand, my demand was 80%) as shown:
Drawing software Screenshot
4. adjust after a good look at the bottom of the drawing software interface display image size, I now raised to 80% of the original screen size: 864 * 1728.
Here Insert Picture Description
* 5. sized simulator interface 864 by 1728 (see methods provided simulator operating results picture following step). Operating results as:
Here Insert Picture Description
simulator setup interface Size steps:
1. Click the simulator interface on the top menu button - click Setup Center
Here Insert Picture Description
2. Go to Settings Center, click interface settings, just enter the parameters we calculated the interface 864 multiplied by 1728.
Here Insert Picture Description
3 Click Save and Close, click Restart.
Here on the set ended, so the effect on the screen to run more comfortable, hoping to help to encounter the same problems of small partners.

Released two original articles · won praise 1 · views 71

Guess you like

Origin blog.csdn.net/weixin_43770376/article/details/104965095