如何在Eclipse中为android创建可绘制的图层列表?

时间:2012-02-26 11:13:00

标签: android

我创建资源drawable layer-list,但我找不到? enter image description here

请帮帮我,谢谢。

1 个答案:

答案 0 :(得分:1)

Eclipse不会在该对话框中显示layer-list选项,因此我猜它是ADT plugin + Eclipse错误(或功能:)之一。)

layer-list它只是drawable文件夹中的xml文件,其中包含layer-list元素,因此您可以手动设置:

<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item>
       // the items of the layer-list, you coul have many items in the layer-list
    </item>
</layer-list>

检查this link