file にいくつかの属性を追加しましattr.xmlた。ここにそのコード:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="gallery_view">
<attr name="android:galleryItemBackground"/>
</declare-styleable>
<declare-styleable name="Dot">
<attr name="color" format="color"/>
<attr name="radius" format="dimension"/>
</declare-styleable>
</resources>
しかし、私が使用する理由はわかりません:
R.styleable.gallery_view_android_galleryItemBackground: エラーなし。
R.styleable.Dot_colorR ファイルにこのフィールドが表示されないため、エラーが通知されます。
これについて私を助けてください。
ありがとう :)