Android 模拟器 AVD 窗口大小
我的问题看起来很愚蠢,但我确实无法解决。
我正在使用 Eclipse 开发 Android 应用程序,但是当我运行模拟器 AVD 时,它有一个固定的窗口大小(在我的计算机屏幕上非常大),所以我看不到 Android 屏幕的其余部分。
你能帮助我吗?
My question seems to be stupid, but I really could not solve it.
I am using eclipse to develop android applications, but when I run the emulator AVD it has a fixed window size (very huge on my computer screen), so I can't see the rest of the Android screen.
Can you help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(11)
如果模拟器的尺寸太大。您可以通过以下方式调整其大小:“
-scale 0.8
或其他数字If the size of the emulator is too big. You can resize it by:
-scale 0.8
or another number这里可以帮助您:
将允许模拟器适合您的屏幕。
Here can help you:
HVGA will allow the emulator to fit on your screen.
输入这个命令
type this command
这对我有用:
我尝试了
-scale 0.8
选项,但效果不佳,因为虽然屏幕尺寸减小了,但颜色看起来像 8 位颜色......或更糟。它完全无法使用,因为闪光灯屏幕几乎全是白色的。-skin 320x480
选项生成了一个适当大小的模拟器,没有图形问题。Here's what worked for me:
Additional Emulator Command Line Options
field type-skin 320x480
or some other resolution appropriate for you.I tried the
-scale 0.8
option but it didn't work well because although the screen size was reduced, the color looked like 8 bit color... or worse. It was entirely unusable since the flash screen was almost entirely white.The
-skin 320x480
option produced an emulator of an appropriate size with no graphics issues.转到Android AVD 管理器并选择设备。
点击
开始>>启动选项>>按实际尺寸缩放显示>>屏幕尺寸>> 6
Go to Android AVD manager and chose the device.
Click
start >> Launch options >>> Scale display to real size >> screen size >> 6
这是最简单的一个
运行
telnet localhost 5554或telent localhost EMULATORID
窗口比例0.7
code> 或窗口比例 <0 到 1 的值>
。如果您使用的是 Windows 7,那么您必须首先激活您的 telnet 客户端。
为此,请按照下列步骤操作:
程序
的图标,点击卸载程序
即可。telnet
如果您没有收到错误,则 telnet 正在工作This is simplest one
Run
telnet localhost 5554 or telent localhost EMULATORID
window scale 0.7
orwindow scale <value from 0 to 1>
.And if you are using Windows 7 then you have to first activate your telnet client.
for this follow these steps:
Programs
below thatUninstall program
is there click on it.telnet
if you will not get error then telnet is working这将完全按照您想要的方式进行,即保留模拟器屏幕分辨率,同时允许您缩放模拟器窗口。
Window/Android SDK and AVD Manager/Start
选中Scale display to real size
,(然后您可以在中设置屏幕尺寸英寸)启动
。This will do exactly what you would like to do, which is leave the emulator screen resolution alone while allowing you to scale the emulator window.
Window/Android SDK and AVD Manager/Start
Scale display to real size
, (you can then set the screen size in inches on this page)Launch
.对于 Android Studio(撰写本文时为 0.6.1):
For Android Studio (0.6.1 at time of writing):
Android Studio 的一个简单解决方案是:
- 启动广告管理器
- 选择您想要的模拟器系列
- 点击右侧的编辑按钮(铅笔)
- 在打开的配置屏幕中间有一个“比例”单选字段 - 选择您喜欢的设备和屏幕之间的比例。我选择了“设备上 4dp = 屏幕上 1px”,结果尺寸正是我想要的(使用 Nexus 5)。
- 点击完成
A simple solution with Android Studio is:
- launch the adv manager
- Select the emulator line you want
- hit the edit button on the right (a pencil)
- In the middle of the configuration screen that opens there is a Scale radio field - choose the ratio between device and screen that you prefer. I have chosen "4dp on device = 1px on screen" and the resulting size is just what I wanted (using Nexus 5).
- Hit Finish
在linux中很容易
怎么做我从命令行启动Android模拟器?
你需要在最后添加这个“-scale 0.45”
例如:
/home/hackro/Documentos/Software/adt-bundle-linux-x86_64-20140702/sdk/tools/emulator64-x86 -avd Android5.1.1 -scale 0.45
我的菜单中有快捷方式linux 的并且它们工作得很好
in linux is easy
How do I launch the Android emulator from the command line?
you need to add at the end this "-scale 0.45"
for example:
/home/hackro/Documentos/Software/adt-bundle-linux-x86_64-20140702/sdk/tools/emulator64-x86 -avd Android5.1.1 -scale 0.45
I have shortcuts in my menu of the linux and they work well