Android 模拟器皮肤布局 - 有工具和规范吗?
Android 模拟器的皮肤在 /platforms/android-xxx/skins 之间的目录中定义。其他供应商特定的皮肤也在文件夹 /add-ons 中。这里存储了皮肤的某些部分,例如背景和按钮的图像,以及将这些部分组织到皮肤中的文件,称为布局。
布局文件包含键值对的分层列表,定义部件和布局。这是一个片段作为说明:
display {
width 480
height 800
x 32
y 106
}
background {
image htc-evo-4g.png
x 0
y 0
}
button {
soft-left {
image key.png
x 191
y 921
}
home {
image key.png
x 73
y 921
}
...
}
我的问题是:
布局文件的语言是否有完整的规范?
是否有任何工具可以创建皮肤,即图像和布局文件?
Skins for Android emulators are defined in a directory among /platforms/android-xxx/skins Additional vendor-specific skins also in the folder /add-ons). Here parts of the skin like images for backgournd and buttons are stored and a file that organizes these parts into the skin which is called layout.
The layout file contains a herarchical list of key-value pairs, defining parts and layouts. Here is a fragment as illustration:
display {
width 480
height 800
x 32
y 106
}
background {
image htc-evo-4g.png
x 0
y 0
}
button {
soft-left {
image key.png
x 191
y 921
}
home {
image key.png
x 73
y 921
}
...
}
My questions are:
Is there a full specification of the language of the layout file?
Are there any tools to create skins, i.e. images and the layout files?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Android 模拟器基于 qemu。
您可以在(Android Source Dir)/external/qemu/docs/ANDROID-SKIN-FILES.TXT(我正在使用Android 2.3)中找到有关皮肤布局文件的简单文档。
或者直接转到此处
Android emulators are based on qemu.
You can find a simple document about skin layout file in (Android Source Dir)/external/qemu/docs/ANDROID-SKIN-FILES.TXT(I'm working with Android 2.3).
Or just go to here