item.xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="
http://schemas.android.com/apk/res/android"
xmlns:app="
http://schemas.android.com/apk/res-auto"
xmlns:tool="
http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardCornerRadius="16dp"
app:cardMaxElevation="4dp"
app:contentPadding="8dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/item_title_text_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="
@android:color/black"
android:textSize="24sp"
tool:text="Title of film" />
<TextView
android:id="@+id/episode_id_text_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textColor="
@android:color/black"
android:textSize="20sp"
tool:text="Number of episode" />
<TextView
android:id="@+id/director_text_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textColor="
@android:color/black"
android:textSize="18sp"
tool:text="Director's name" />
<TextView
android:id="@+id/producer_text_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textColor="
@android:color/black"
android:textSize="18sp"
tool:text="Producer's name" />
</LinearLayout>
</androidx.cardview.widget.CardView>
activity.xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="
http://schemas.android.com/apk/res/android"
xmlns:app="
http://schemas.android.com/apk/res-auto"
xmlns:tools="
http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="
@color/colorAccent"
tools:context=".activities.main.MainActivity">
<include layout="
@layout/main_action_bar" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/films_recycler_view"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:scrollbarSize="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/main_action_bar" />
</androidx.constraintlayout.widget.ConstraintLayout>