我已經制作並使用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得到什麼的截圖,添加 –
這不是一個論壇。您通過接受答案來「解決」帖子。 –