<?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"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <com.siliconlabs.bledemo.common.views.HorizontalShadow
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

    <androidx.cardview.widget.CardView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_margin="16dp"
        app:cardCornerRadius="16dp">

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_above="@id/ll_details"
                android:layout_alignParentTop="true"
                android:layout_marginTop="0dp"
                android:gravity="center_vertical"
                android:orientation="vertical">

                <ImageButton
                    android:id="@+id/btn_lightbulb"
                    android:layout_width="wrap_content"
                    android:layout_height="180dp"
                    android:layout_gravity="center_horizontal"
                    android:layout_marginBottom="24dp"
                    android:background="@color/silabs_transparent"
                    android:scaleType="centerInside"
                    android:src="@drawable/light_off" />

                <TextView
                    android:id="@+id/tv_light_bulb_hint"
                    android:fontFamily="@font/stolzl_regular"
                    android:textSize="@dimen/text_size_S"
                    android:textColor="@color/silabs_rebranding_2373_connected_light_text_color"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_horizontal"
                    android:text="@string/light_demo_toggle_instructions" />

            </LinearLayout>

            <LinearLayout
                android:id="@+id/ll_details"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_alignParentBottom="true"
                android:orientation="vertical">

                <include layout="@layout/horizontal_separator" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:minHeight="72dp"
                    android:orientation="horizontal">

                    <ImageView
                        android:id="@+id/iv_light_change_source_logo"
                        android:layout_width="40dp"
                        android:layout_height="40dp"
                        android:layout_marginStart="16dp"
                        android:layout_marginTop="16dp"
                        android:layout_marginBottom="16dp"
                        android:src="@drawable/icon_zigbee" />

                    <TextView
                        android:id="@+id/tv_light_change_source_name"
                        style="@style/TitleLarge"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center_vertical"
                        android:layout_marginStart="16dp"
                        tools:text="Zigbee" />
                </LinearLayout>

                <include layout="@layout/horizontal_separator" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginStart="16dp"
                    android:layout_marginTop="16dp"
                    android:textSize="@dimen/text_size_S"
                    android:textColor="@color/silabs_rebranding_2373_connected_light_text_color"
                    android:fontFamily="@font/stolzl_regular"
                    android:text="@string/light_demo_title_last_event" />

                <TextView
                    android:id="@+id/tv_light_status"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginStart="16dp"
                    android:layout_marginBottom="16dp"
                    android:fontFamily="@font/stolzl_regular"
                    android:textColor="@color/silabs_redtheme_checkbox_text_color"
                    android:textSize="@dimen/text_size_SM"
                    tools:text="Light On" />

                <include layout="@layout/horizontal_separator" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginStart="16dp"
                    android:layout_marginTop="16dp"
                    android:textSize="@dimen/text_size_S"
                    android:textColor="@color/silabs_rebranding_2373_connected_light_text_color"
                    android:fontFamily="@font/stolzl_regular"
                    android:text="@string/light_demo_title_source" />

                <TextView
                    android:id="@+id/tv_light_change_source"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginStart="16dp"
                    android:layout_marginBottom="16dp"
                    android:fontFamily="@font/stolzl_regular"
                    android:textColor="@color/silabs_redtheme_checkbox_text_color"
                    android:textSize="@dimen/text_size_SM"
                    tools:text="00:00:00:00:00:00:00:00" />
            </LinearLayout>

        </RelativeLayout>

    </androidx.cardview.widget.CardView>

</RelativeLayout>
