<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".features.configure.gatt_configurator.activities.GattServerActivity">
    <!-- Fake status bar: gets real height at runtime and paints blue -->
    <View
        android:id="@+id/fakeStatusBar"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:background="@color/silabs_redtheme_status_bar_color" />

    <View
        android:id="@+id/statusBarToolbarSeparator"
        android:layout_width="match_parent"
        android:layout_height="@dimen/matter_1dp"
        android:layout_below="@id/fakeStatusBar"
        android:background="@color/grey" />

    <!-- Toolbar that becomes supportActionBar -->
    <androidx.appcompat.widget.Toolbar
        android:layout_below="@id/statusBarToolbarSeparator"
        android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        android:background="@color/silabs_redtheme_tool_bar_color"
        android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" />

    <com.siliconlabs.bledemo.common.views.HorizontalShadow
        android:id="@+id/horizontalShadow"
        android:layout_below="@id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

    <LinearLayout
        android:layout_below="@id/horizontalShadow"
        android:id="@+id/ll_gatt_server_name"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="16dp"
        android:orientation="vertical">

        <TextView
            style="@style/TitleLarge"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="@string/gatt_configurator_label_gatt_server_name" />

        <EditText
            android:id="@+id/et_gatt_server_name"
            style="@style/EditTextSmall"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="16dp"
            android:fontFamily="@font/stolzl_medium"
            tools:text="New GATT server" />
    </LinearLayout>

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/rv_edit_gatt_server"
        android:layout_width="match_parent"
        android:layout_below="@id/ll_gatt_server_name"
        android:layout_height="match_parent" />
</RelativeLayout>