如何创建特定大小且仍具有硬件控制按钮的 ADT 虚拟机?
我正在尝试为我的 Dell Streak 开发一个非常具体的应用程序。我希望整个应用程序横向运行。 Streak 具有倾斜功能,可将整个操作系统切换为横向 800x480。
所以我想制作一个 ADT 来测试,使用 800x480 显示器,但每当我设置大小时,我都没有按钮。 Streak 有一个主页、菜单和后退按钮以及音量/静音和电源按钮,我需要在我的应用程序中使用其中一些按钮。
PS 我不担心倾斜会弄乱我的应用程序。无论如何,还没有。只需要大小合适且带有按钮的测试环境。
I'm trying to develop a very specific app for my Dell Streak. I want the entire app to run landscape. The Streak has a tilt function that switches the whole OS to a landscape 800x480.
So I want to make an ADT to test in that uses an 800x480 display, but whenever I set the size I get no buttons. The Streak has a Home, Menu and Back button aswell as volume/mute and power, and I need to use some of them for my application.
P.S. I'm not worried about the tilting messing up my application. Not yet, anyway. Just need the test environment the right size and with buttons.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是因为您使用非标准(您自己的)分辨率,并且没有皮肤。在这种情况下,您应该提供自己的皮肤。
但你实际上不必这样做。如果您想要 800x480,可以在创建 AVD(即 480x800)时使用
WVGA800
内置皮肤,然后使用KEYPAD_7
或Ctrl-F11
和KEYPAD_9
或Ctrl-F12
将其方向切换为横向。然后您将获得 800x480 的全键盘分辨率。-
此外,您始终可以使用 PC 或笔记本电脑的键盘来模拟模拟器按键:
Home - HOME
菜单 - F2 或 Page-up
Back - ESC
电源按钮 - F7
音频音量增大按钮 - KEYPAD_PLUS、Ctrl-F5
音频音量减小按钮 - KEYPAD_MINUS 、Ctrl-F6
-
有关更多信息,请参阅:键盘映射
This is because you use non-standard (your own) resolution and there's no skin for that. You should provide your own skin in such a case.
But you don't really have to do that. If you want to have 800x480 you can use
WVGA800
built-in skin when creating AVD (which is 480x800) and then useKEYPAD_7
orCtrl-F11
andKEYPAD_9
orCtrl-F12
to switch it's orientation to landscape. Then you get 800x480 with full keypad.-
Besides you can always use keyboard of your PC or laptop to emulate emulator keys:
Home - HOME
Menu - F2 or Page-up
Back - ESC
Power Button - F7
Audio volume up button - KEYPAD_PLUS, Ctrl-F5
Audio volume down button - KEYPAD_MINUS, Ctrl-F6
-
for more see: Keyboard mapping