ADB set display-size is incorrectly displaying por

2019-08-14 02:33发布

问题:

I am using the adb feature to set the screensize to see how the app looks on smaller screens. using the command :

adb shell am display-size 1200x720

in 4.3 the command is

adb shell wm size 1200x720

But it is seems to be behaving stupidly as it displays portrait view of the app in landscape view of the device.

Leaving so much screen not used and result is a smaller looking device than need be. The device is the Nexus 7

回答1:

Just swap the order of the dimensions. So instead of 1200x720, use 720x1200. That should do it for you.