2012-10-24 38 views
1

附加<申報,設置樣式>標記請幫助我,錯誤的聲明,設置樣式標籤:沒有發現標籤錯誤時的Android

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

看到這個答案http://stackoverflow.com/questions/4585808/difference-between-declare-styleable-and-style –

回答

1

您正在使用」,而不是」請嘗試以下操作:

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