[英]Unable to build Card-View
我正在嘗試在布局中插入卡片視圖,但出現此渲染錯誤。
Missing styles.
Is the correct theme chosen for this layout?
Use the Theme combo box above the layout to choose a different layout,
or fix the theme style references.
Failed to find style with id 0x7fff001a in current theme.
我已經將其包含在應用程序的gradle中:
另外,我在樣式中使用的主題是
styles.xml在這里:
<style name="AppTheme.Base" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/primaryColor</item>
<item name="colorPrimaryDark">@color/primaryColorDark</item>
<item name="colorAccent">@color/accentColor</item>
<item name="cardStyle">@style/CardView.Light</item>
</style>
卡片視圖在這里:
<android.support.v7.widget.CardView
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:cardCornerRadius="4dp"
app:elevation="5dp"/>
該錯誤消息討論了ID為0x7fff001a的樣式。 它指的是什么?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.