I have already made the recyclerView and I can't figure out how to design the cardview . As it has 4 custom items inside it .
How can I get the access to the card items?
In my cardview design layout where I have placed a gridview inside the cardview and i can't figure out how to access the gridview items with an ArrayList.
My cardview design layout
<android.support.v7.widget.CardView
xmlns:card_view="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content"
android:layout_width="match_parent"
xmlns:tools="http://schemas.android.com/tools"
android:background="@color/cardview_light_background"
android:layout_margin="@dimen/activity_horizontal_margin"
card_view:cardElevation="@dimen/elevation_height"
android:id="@+id/cvVideos">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@android:drawable/presence_video_busy"
android:id="@+id/ivIconTitle"/>
<TextView
android:layout_width="match_parent"
android:layout_height="39dp"
android:text="@string/app_name"
android:textColor="@color/textColorSecondary"
android:id="@+id/tvTitle" />
</LinearLayout>
<GridView
android:id="@+id/grid_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:numColumns="auto_fit"
android:columnWidth="120dp"
android:horizontalSpacing="10dp"
android:verticalSpacing="10dp"
android:gravity="center"
android:stretchMode="columnWidth"
tools:listitem="@layout/video_grid_listitem"
android:padding="@dimen/activity_horizontal_margin">
</GridView>
</android.support.v7.widget.CardView>