<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/linearLayoutMainFrame"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?attr/primaryBackgroundColor"
    android:orientation="horizontal"
    android:paddingTop="@dimen/dimen4dp"
    android:paddingBottom="@dimen/dimen4dp">

    <com.google.android.material.card.MaterialCardView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        style="?attr/materialCardViewElevatedStyle"
        app:cardElevation="@dimen/dimen0dp">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:foreground="?android:attr/selectableItemBackground"
            android:background="?attr/materialCardBackgroundColor"
            android:padding="@dimen/dimen12dp"
            android:orientation="horizontal">

            <com.google.android.material.card.MaterialCardView
                android:id="@+id/labelView"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                style="?attr/materialCardViewElevatedStyle"
                app:cardCornerRadius="@dimen/dimen16dp"
                app:cardElevation="@dimen/dimen0dp"
                app:contentPaddingBottom="@dimen/dimen4dp"
                app:contentPaddingLeft="@dimen/dimen12dp"
                app:contentPaddingRight="@dimen/dimen12dp"
                app:contentPaddingTop="@dimen/dimen4dp">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:gravity="center_vertical"
                    android:orientation="horizontal">

                    <ImageView
                        android:id="@+id/labelIcon"
                        android:layout_width="@dimen/dimen16dp"
                        android:layout_height="@dimen/dimen16dp"
                        android:layout_marginTop="@dimen/dimen4dp"
                        android:layout_marginBottom="@dimen/dimen4dp"
                        android:layout_weight="0"
                        android:contentDescription="@string/generalImgContentText"
                        app:tint="@color/colorWhite"
                        app:srcCompat="@drawable/ic_tag"/>

                    <TextView
                        android:id="@+id/labelName"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginStart="@dimen/dimen8dp"
                        android:layout_weight="1"
                        android:textColor="@color/colorWhite"
                        android:textSize="@dimen/dimen14sp"
                        android:textStyle="bold"/>
                </LinearLayout>

            </com.google.android.material.card.MaterialCardView>

            <androidx.legacy.widget.Space
                android:layout_width="0dp"
                android:layout_height="0dp"
                android:layout_weight="1"/>

            <ImageView
                android:id="@+id/labelsOptionsMenu"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical|end"
                android:contentDescription="@string/labelMenuContentDesc"
                android:background="?android:attr/selectableItemBackgroundBorderless"
                android:src="@drawable/ic_dotted_menu_horizontal"/>

        </LinearLayout>

    </com.google.android.material.card.MaterialCardView>

</LinearLayout>

