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

    <androidx.appcompat.widget.AppCompatCheckBox
        android:id="@+id/cb_export"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical"
        android:layout_marginStart="@dimen/space_ML"
        android:visibility="visible"
        app:buttonCompat="@drawable/throughput_rb_notifications_square_selector"
        tools:visibility="gone" />

    <com.google.android.material.card.MaterialCardView
        style="@style/list_item_card_view_box"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <LinearLayout
                style="@style/list_item_card_view_container_margins"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical">

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

                    <ImageView
                        android:layout_width="48dp"
                        android:layout_height="48dp"
                        android:contentDescription="@string/content_desc_gatt_server_icon"
                        android:src="@drawable/redesign_ic_gatt_server" />

                    <LinearLayout
                        android:layout_width="0dp"
                        android:layout_height="match_parent"
                        android:layout_marginStart="@dimen/space_S"
                        android:layout_weight="1"
                        android:gravity="center_vertical"
                        android:orientation="vertical">

                        <TextView
                            android:id="@+id/tv_gatt_server_name"
                            style="@style/list_item_card_view_title"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            tools:text="New GATT server 1" />

                        <TextView
                            android:id="@+id/tv_total_services"
                            style="@style/list_item_card_view_text_info"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@string/gatt_configurator_n_services" />

                    </LinearLayout>

                    <androidx.appcompat.widget.SwitchCompat
                        android:id="@+id/sw_gatt_server"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center"
                        android:minWidth="32dp"
                        android:padding="0dp"
                        android:thumb="@drawable/sw_thumb"
                        app:splitTrack="false"
                        app:switchMinWidth="32dp"
                        app:track="@drawable/sw_track" />

                </LinearLayout>

                <View
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:layout_marginTop="@dimen/space_XS"
                    android:layout_marginBottom="@dimen/space_XS"
                    android:background="?android:attr/listDivider" />


                <androidx.constraintlayout.widget.ConstraintLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="@dimen/card_view_margin_vertical">

                    <com.google.android.material.button.MaterialButton
                        android:id="@+id/ib_edit"
                        style="@style/Widget.Material3.Button.IconButton"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:contentDescription="@string/label_edit"
                        app:icon="@drawable/redesign_ic_card_view_action_icon_edit"
                        app:layout_constraintStart_toStartOf="parent"
                        app:layout_constraintTop_toTopOf="parent" />

                    <com.google.android.material.button.MaterialButton
                        android:id="@+id/ib_copy"
                        style="@style/Widget.Material3.Button.IconButton"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginStart="@dimen/space_XS"
                        android:contentDescription="@string/label_copy"
                        app:icon="@drawable/redesign_ic_card_view_action_icon_copy"
                        app:layout_constraintStart_toEndOf="@id/ib_edit"
                        app:layout_constraintTop_toTopOf="parent" />

                    <com.google.android.material.button.MaterialButton
                        android:id="@+id/ib_remove"
                        style="@style/Widget.Material3.Button.IconButton"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginStart="@dimen/space_XS"
                        android:contentDescription="@string/label_remove"
                        app:icon="@drawable/redesign_ic_card_view_action_icon_delete"
                        app:layout_constraintStart_toEndOf="@id/ib_copy"
                        app:layout_constraintTop_toTopOf="parent" />

                    <com.siliconlabs.bledemo.common.views.ExpandArrow
                        android:id="@+id/expand_arrow"
                        style="@style/Widget.Material3.Button.IconButton"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_alignParentEnd="true"
                        android:layout_centerVertical="true"
                        android:contentDescription="@string/content_desc_dropdown_arrow"
                        app:layout_constraintEnd_toEndOf="parent"
                        app:layout_constraintTop_toTopOf="parent" />

                </androidx.constraintlayout.widget.ConstraintLayout>

            </LinearLayout>

            <LinearLayout
                android:id="@+id/ll_gatt_server_details"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical"
                android:visibility="gone"
                tools:visibility="visible" />

        </LinearLayout>

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

</LinearLayout>
