请帮助我,声明样式标签错误:找不到标签

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

最佳答案

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

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

10-08 14:42