我已经制作并使用CardView的应用程序,但是我的卡片视图将进入一张卡片。Cardview全部进入一张卡片
我的代码:
recyclerview_activity.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="match_parent"
android:padding="16dp"
>
<android.support.v7.widget.RecyclerView
android:layout_height="match_parent"
android:layout_width="match_parent"
android:id="@+id/rv"
>
</android.support.v7.widget.RecyclerView>
</LinearLayout>
请这里一并复制item.xml你与你的代码 – Manishika
@manishika得到什么的截图,添加 –
这不是一个论坛。您通过接受答案来“解决”帖子。 –