Java 未能找到样式';cardview样式';在当前主题中,CardView在Android Studio 3.1.3中不起作用
在当前主题中找不到样式“cardview样式” 更新后,CardView在Android Studio 3.1.3中不工作 Android studio在尝试添加时显示渲染问题 我的布局中的CardView小部件Java 未能找到样式';cardview样式';在当前主题中,CardView在Android Studio 3.1.3中不起作用,java,android,android-layout,android-studio,android-fragments,Java,Android,Android Layout,Android Studio,Android Fragments,在当前主题中找不到样式“cardview样式” 更新后,CardView在Android Studio 3.1.3中不工作 Android studio在尝试添加时显示渲染问题 我的布局中的CardView小部件 依赖关系{ 实现文件树(目录:“libs”,包括:['*.jar']) 实现'com.android.support:appcompat-v7:27.1.1' 实现'com.android.support.constraint:constraint布局:1.1.2' 实现'com.a
依赖关系{
实现文件树(目录:“libs”,包括:['*.jar'])
实现'com.android.support:appcompat-v7:27.1.1'
实现'com.android.support.constraint:constraint布局:1.1.2'
实现'com.android.support:design:27.1.1'
实现'com.google.firebase:firebase auth:11.8.0'
实现'com.google.firebase:firebase存储:11.8.0'
实现'com.google.firebase:firebase firestore:11.8.0'
实现'com.android.support:cardview-v7:27.1.1'
实现'com.android.support:support-v4:27.1.1'
编译“de.hdodenhof:circleimageview:2.2.0”
编译'com.theartofdev.edmodo:android图像裁剪器:2.6.+'
实现'com.github.bumptech.glide:glide:4.6.1'
annotationProcessor'com.github.bumptech.glide:compiler:4.6.1'
编译“id.zelory:compressor:2.1.0”
测试实现'junit:junit:4.12'
androidTestImplementation'com.android.support.test:runner:1.0.2'
androidTestImplementation'com.android.support.test.espresso:espresso核心:3.0.2'
实现'com.android.support:cardview-v7:27.1.1'
}
应用插件:“com.google.gms.googleservices”
请在styles.xml中使用以下代码:
<item name="cardViewStyle">@style/CardView</item>
@style/cardwiew
@颜色/原色
@颜色/原色暗
@颜色/颜色重音
@style/cardwiew//将其用于代码中
让我知道这是否适合您。请在您的styles.xml中使用以下代码:
<item name="cardViewStyle">@style/CardView</item>
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="cardViewStyle">@style/CardView</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
@style/cardwiew
@颜色/原色
@颜色/原色暗
@颜色/颜色重音
@style/cardwiew//将其用于代码中
让我知道这是否适合您。
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="cardViewStyle">@style/CardView</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
@样式/卡片视图
@颜色/原色
@颜色/原色暗
@颜色/颜色重音
@样式/卡片视图
@颜色/原色
@颜色/原色暗
@颜色/颜色重音
你会支持我的!!你会支持我的!!