<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/feed_layout"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginStart="6dp"
    android:layout_marginTop="6dp"
    android:layout_marginEnd="6dp"
    android:clickable="true"
    android:focusable="true">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="?android:attr/selectableItemBackground"
        android:padding="6dp">

        <RelativeLayout
            android:id="@+id/feed_layout_first_part"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <ImageView
                android:id="@+id/feed_layout_icon"
                android:layout_width="24dp"
                android:layout_height="24dp"
                android:layout_alignParentStart="true"
                android:layout_marginEnd="6dp"
                android:src="@drawable/ic_rss_feed_grey" />

            <TextView
                android:id="@+id/feed_layout_name"
                style="@style/Base.TextAppearance.AppCompat.Subhead"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentEnd="true"
                android:layout_toEndOf="@id/feed_layout_icon"
                android:ellipsize="end"
                android:maxLines="2"
                android:minLines="1"
                tools:text="Feed name" />

            <TextView
                android:id="@+id/feed_layout_description"
                style="@style/Base.TextAppearance.AppCompat.Small"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@id/feed_layout_name"
                android:layout_alignParentStart="true"
                android:layout_marginTop="4dp"
                android:ellipsize="end"
                android:maxLines="3"
                android:minLines="1"
                android:visibility="visible"
                tools:text="This is a feed description" />

        </RelativeLayout>

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@id/feed_layout_first_part"
            android:layout_marginTop="4dp">

            <ImageView
                android:id="@+id/feed_layout_folder_icon"
                android:layout_width="20dp"
                android:layout_height="20dp"
                android:layout_alignParentStart="true"
                android:src="@drawable/ic_folder_grey" />

            <TextView
                android:id="@+id/feed_layout_folder"
                style="@style/Base.TextAppearance.AppCompat.Body1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentEnd="true"
                android:layout_marginStart="6dp"
                android:layout_toEndOf="@id/feed_layout_folder_icon"
                android:ellipsize="end"
                android:maxLines="1"
                tools:text="Folder 1" />

        </RelativeLayout>

    </RelativeLayout>

</androidx.cardview.widget.CardView>