如何调整从终端/壳物理安卓屏幕 [英] how to resize physical android screen from terminal/shell

查看:148
本文介绍了如何调整从终端/壳物理安卓屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

前一段时间,我能够调整屏幕在Android上。例如,我有一个Xoom的,并能够运行来自亚行该缩小它归结为一个7屏幕的命令(离开它周围的黑色边框)。诚然,这是一个小马车,因为家庭/后退/ APP-开关按钮消失了,但我知道这是可能的。这是一个1行命令,我输入了Xoom的X和Y像素新的屏幕分辨率。

A while ago, I was able to resize the screens on Android. For example, I had a Xoom, and was able to run a command from ADB which shrunk it down to a 7" screen (leaving a black border around it). Granted, it was a little buggy because the home/back/app-switch buttons disappeared, but I know it's possible. It's a 1 line command where I input the new screen resolution in X and Y pixels for the Xoom.

我想知道是否有人熟悉,并且知道如何做到这一点。

I was wondering if anyone was familiar with this, and knows how to do it.

(如果有人说,这是不可能的,我可以向你保证这是)

(and if anyone says it's not possible, I can assure you it is)

(我想这样做,所以我可以在我的Nexus 10在测试各种屏幕尺寸的应用程序,而且我没有使用仿真器preFER)

(and I want to do this so I can test apps in various screen sizes on my Nexus 10, and I'd prefer not using an emulator)

推荐答案

我相信它是:

adb shell am display-size 

但我远离电脑试试。一个例子的使用情况是:

but i am away from a computer to try it. An example use would be:

adb shell am display-size 640x480

这篇关于如何调整从终端/壳物理安卓屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆