gpt4 book ai didi

android - cardCornerRadius 显示错误

转载 作者:可可西里 更新时间:2023-11-01 18:49:18 32 4
gpt4 key购买 nike

我正在学习 android Material 设计,但在这期间一直出现错误。谁能帮我解决这个问题?

workspace/RecyclerCardView/res/layout/list_item_row.xml:2: error: No resource identifier found for attribute 'cardCornerRadius' in package 'com.Zybo.recyclercardview'

<android.support.v7.widget.CardView  xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="5dp"
card_view:cardCornerRadius="5dp" >

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

<ImageView
android:id="@+id/img_id"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="7dp" />

<TextView
android:id="@+id/txt_id"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hellooo..." />
</LinearLayout>

</android.support.v7.widget.CardView>

最佳答案

implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'

以上就够了。

关于android - cardCornerRadius 显示错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31982890/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com