Android Skin 布局中的事件值?

发布于 2024-09-30 12:56:10 字数 153 浏览 0 评论 0原文

我一直在 Eclipse 中为 Android 开发的 AVD 制作一些自定义皮肤,我认为除了布局部分中的“事件”参数之外,我已经解决了整个布局文件。当我看到类似

事件 EV_SW:0:1

内容时......这意味着什么?

I've been making some custom skins for my AVD's in Eclipse for Android development and I think I've got the whole layout file worked out except for the "event" parameter in the layouts section. When I see something like

event EV_SW:0:1

... what does that mean?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

许你一世情深 2024-10-07 12:56:10

我相信它指的是硬件“开关”。第一个数字是开关 ID,第二个数字表示开关是打开还是关闭。

对于模拟器,开关编号 0 用于控制设备是处于纵向模式还是横向模式。

I believe it refers to a hardware "switch". The first number is the switch ID, and the second number indicates whether the switch is on or off.

In the case of the emulator, switch number 0 is used to control whether the device is in portrait or landscape mode.

瑕疵 2024-10-07 12:56:10

与创建 AVD 外观相关的文档包含对 < a href="https://android.googlesource.com/platform/external/qemu/+/emu-master-dev/docs/ANDROID-SKIN-FILES.TXT" rel="nofollow">Android 模拟器皮肤文件规范< /a>

本规范中有一个引用事件的部分。作为示例,它专门提供了 EV_SW:0 的详细信息

        The typical event to be used is EV_SW:0:1 for portrait mode
        and EV_SW:0:0 for landscape ones. They corresponds to "keyboard
        closed" and "keyboard opened" respectively...

The documentation related to creating AVD skins contains a reference to the Android Emulator Skin File Specification

Within this specification is a section referencing events. As an example it specifically provides details for EV_SW:0

        The typical event to be used is EV_SW:0:1 for portrait mode
        and EV_SW:0:0 for landscape ones. They corresponds to "keyboard
        closed" and "keyboard opened" respectively...
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文