我正在使用下面的代码来创建 CardView
有角,但它保持矩形
<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:id="@+id/cardview_id"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:clickable="true"
android:focusable="true"
android:foreground="?android:attr/selectableItemBackground"
card_view:cardCornerRadius="6dp">
更新:我的 list 中有一个错误,我只是删除了这一行:
android:hardwareAccelerated="false"
最佳答案
我也有同样的问题。我发现的问题是...
android:hardwareAccelerated="false"
从 list 中删除了这一行,问题为我解决了。
关于android - 如何修复 CardView 角半径问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52990652/