在Android </declare-styleable>中添加<declare-styleable>标记时出错

时间:2012-10-24 07:51:33

标签: android

请帮助我,在declare-styleable标签上出错:找不到标签

<?xml version="1.0" encoding="UTF-8"?>
<resources>
    <declare-styleable name=”Gallery1”>
    <attr name=”android:galleryItemBackground” />
    </declare-styleable>
</resources>

1 个答案:

答案 0 :(得分:1)

您使用的是“而不是”。请尝试以下操作:

<?xml version="1.0" encoding="UTF-8"?>
    <resources>
    <declare-styleable name="Gallery1">
    <attr name="android:galleryItemBackground" />
    </declare-styleable>
</resources>