<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:background="@color/grey_background">


    <androidx.cardview.widget.CardView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:elevation="@dimen/margin1dp"
        app:cardBackgroundColor="@color/white"
        android:layout_margin="@dimen/custom_margin3dp"
        app:cardCornerRadius="@dimen/custom_margin"
        app:cardElevation="@dimen/margin1dp">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_margin="@dimen/custom_margin"
            android:orientation="horizontal"
            android:weightSum="10">

            <TextView
                android:id="@+id/alertTextView"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:layout_marginLeft="2dp"
                android:layout_weight="9"
                android:text="Item Name"
                android:padding="@dimen/custom_layout_margin11"
                android:textColor="@color/black"
                android:textSize="@dimen/txt_size_14sp" />

            <CheckBox
                android:id="@+id/alertCheckbox"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:layout_marginLeft="8dp"
                android:layout_weight="1"
                android:clickable="false"
                android:buttonTint="@color/colorPrimary"
                android:gravity="center" />

        </LinearLayout>
    </androidx.cardview.widget.CardView>

</RelativeLayout>