Android Emulator Skin Layouts - Are there tools and a specification?

ⅰ亾dé卋堺 提交于 2019-12-05 01:51:10

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/8233761/android-emulator-skin-layouts-are-there-tools-and-a-specification

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!