Android模拟器皮肤布局 - 是否有工具和规范? [英] Android Emulator Skin Layouts - Are there tools and a specification?

查看:167
本文介绍了Android模拟器皮肤布局 - 是否有工具和规范?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

外观为Android模拟器目录中的定义中/平台/ Android的XXX /皮附加供应商特定的皮肤也是在文件夹/附加)。在这里,像图像backgournd和按钮的皮肤部分存储和组织这些部件在其中被称为布局皮肤上的文件。

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.

布局文件包含键值对,确定部件和布局的herarchical列表。这里是一个片段作为例证:

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?

推荐答案

Android的模拟器是基于QEMU。 你可以找到有关(Android源目录)/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).

或者只是去这里

这篇关于Android模拟器皮肤布局 - 是否有工具和规范?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆