ADB set display-size is incorrectly displaying portrait using landscape

跟風遠走 提交于 2019-12-11 12:47:28

问题


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.



来源:https://stackoverflow.com/questions/20086099/adb-set-display-size-is-incorrectly-displaying-portrait-using-landscape

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!