<android.support.v7.widget.CardView
android:id="@+id/card_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/card_outer_padding"
android:layout_marginTop="@dimen/card_outer_padding"
android:layout_marginRight="@dimen/card_outer_padding"
android:layout_marginBottom='@{model.cardBottomMargin}'
android:foreground="?attr/selectableItemBackground"
android:onClick="@{model::onCardClick}"
app:cardElevation="2dp"
app:cardCornerRadius="2dp"
app:cardUseCompatPadding="true">
</android.support.v7.widget.CardView>
我收到了以下错误信息:
无法解析符号 ?attr/selectableItemBackground
,
验证Android XML文件中的资源引用。
<TextView
android:id="@+id/country_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginRight="40dp"
android:text="@{model.name}"
style="@style/TextAppearance.AppCompat.Headline"
tools:text="Country"/>
我遇到了类似的错误:
无法解析符号'@style/TextAppearance.AppCompat.Headline'。
验证Android XML文件中的资源引用。
有什么指针吗? 谢谢!
它似乎与这个主题有关,但没有提供解决方案。
?attr/colorPrimary
жңүзұ»дјјзҡ„й—®йўҳпјҢдҪҶжҳҜеҲ йҷӨзүҲжң¬еҸ·дёәxxxзҡ„Gradle__com_android_support_xxx.xml
ж–Ү件еҜ№жҲ‘дёҚиө·дҪңз”ЁпјҢжүҖд»ҘжҲ‘еҲ йҷӨдәҶжүҖжңүд»ҘGradle__com_android_support_
ејҖеӨҙзҡ„ж–Ү件пјҢиҝҷж ·е°ұеҸҜд»ҘдәҶгҖӮ - HendraWD