ADB set display-size is incorrectly displaying por

2019-08-14 02:35发布

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. diagram

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

1条回答
爷、活的狠高调
2楼-- · 2019-08-14 03:17

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

查看更多
登录 后发表回答