<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_marginTop="@dimen/matter_10dp">


    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:gravity="top|center_vertical"
        android:orientation="vertical">

        <TextView
            style="@style/SilabsMatterDeviceTitle"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:layout_margin="@dimen/matter_5dp"
            android:gravity="center"
            android:text="@string/matter_air_quality_sensor_cluster"
            android:textSize="@dimen/text_size_XL"
            android:textStyle="bold" />

        <androidx.cardview.widget.CardView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:layout_margin="@dimen/matter_25dp"
            android:background="@color/silabs_white"
            android:gravity="center"
            android:orientation="horizontal"
            app:cardCornerRadius="@dimen/matter_15dp">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="@dimen/matter_150dp"
                android:orientation="vertical">

                <TextView
                    android:id="@+id/txt_value"
                    android:layout_width="@dimen/matter_200dp"
                    android:layout_height="@dimen/matter_100dp"
                    android:layout_gravity="center"
                    android:fontFamily="@font/helvetica_neue_light"
                    android:gravity="center"
                    android:text="@string/matter_init_air_sensor_quality_value"
                    android:textColor="@color/silabs_redtheme_primary_color"
                    android:textSize="@dimen/text_size_XXXL" />

                <TextView
                    android:id="@+id/txt_status"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:fontFamily="@font/stolzl_regular"
                    android:gravity="center"
                    android:text="@string/matter_init_air_sensor_quality_status"
                    android:textColor="@color/silabs_redtheme_primary_color"
                    android:textSize="@dimen/text_size_M" />
            </LinearLayout>
        </androidx.cardview.widget.CardView>

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:gravity="center"
            android:orientation="horizontal">

            <com.google.android.material.button.MaterialButton
                android:id="@+id/btn_read_value"
                style="@style/button_add_data_outlined"
                android:layout_width="130dp"
                android:layout_height="wrap_content"
                android:layout_margin="@dimen/matter_10dp"
                android:text="@string/matter_refresh_button"
                app:cornerRadius="14dp" />

        </LinearLayout>
    </LinearLayout>
</RelativeLayout>
