如何创建特定大小且仍具有硬件控制按钮的 ADT 虚拟机?

发布于 2024-09-13 06:27:32 字数 261 浏览 3 评论 0原文

我正在尝试为我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼泪都笑了 2024-09-20 06:27:32

这是因为您使用非标准(您自己的)分辨率,并且没有皮肤。在这种情况下,您应该提供自己的皮肤。

但你实际上不必这样做。如果您想要 800x480,可以在创建 AVD(即 480x800)时使用 WVGA800 内置皮肤,然后使用 KEYPAD_7Ctrl-F11KEYPAD_9Ctrl-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 use KEYPAD_7 or Ctrl-F11 and KEYPAD_9 or Ctrl-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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文