<?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"
    android:orientation="vertical"
    android:paddingHorizontal="16dp"
    android:paddingTop="16dp">

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

    <RadioButton
        android:id="@+id/rb_legacy_advertising"
        style="@style/TextMedium"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="4dp"
        android:fontFamily="@font/stolzl_medium"
        android:buttonTint="@color/silabs_redtheme_primary_color"
        android:checked="true"
        android:text="@string/advertiser_label_legacy_advertising" />

    <RadioButton
        android:id="@+id/rb_extended_advertising"
        style="@style/TextMedium"
        android:fontFamily="@font/stolzl_medium"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:buttonTint="@color/silabs_redtheme_primary_color"
        android:text="@string/advertiser_label_extended_advertising" />

    <Spinner
        android:id="@+id/sp_legacy"
        style="@style/CustomSpinner"
        android:layout_width="match_parent"
        android:layout_marginTop="12dp"
        android:fontFamily="@font/stolzl_medium"
        android:textColor="@color/silabs_redtheme_scanner_header_text_color"
        tools:listitem="@layout/spinner_item_advertiser_config_type" />

    <Spinner
        android:id="@+id/sp_extended"
        style="@style/CustomSpinner"
        android:layout_width="match_parent"
        android:layout_marginTop="12dp"
        android:fontFamily="@font/stolzl_medium"
        android:textColor="@color/silabs_redtheme_scanner_header_text_color"
        android:visibility="gone"
        tools:listitem="@layout/spinner_item_advertiser_config_type" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="4dp"
        android:layout_marginBottom="4dp"
        android:orientation="horizontal">

        <androidx.appcompat.widget.AppCompatCheckBox
            android:id="@+id/cb_include_tx_power"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginEnd="16dp"
            android:fontFamily="@font/stolzl_medium"
            android:minHeight="48dp"
            android:layoutDirection="rtl"
            android:textDirection="ltr"
            android:padding="4dp"
            android:text="@string/advertiser_label_include_tx_power"
            android:textColor="@color/silabs_redtheme_checkbox_text_color"
            android:textSize="@dimen/text_size_M"
            app:buttonCompat="@drawable/throughput_rb_notifications_square_selector" />

        <androidx.appcompat.widget.AppCompatCheckBox
            android:id="@+id/cb_anonymous"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:fontFamily="@font/stolzl_medium"
            android:minHeight="48dp"
            android:padding="4dp"
            android:layoutDirection="rtl"
            android:textDirection="ltr"
            android:text="@string/advertiser_label_anonymous"
            android:textColor="@color/silabs_redtheme_checkbox_text_color"
            android:textSize="@dimen/text_size_M"
            app:buttonCompat="@drawable/throughput_rb_notifications_square_selector" />
    </LinearLayout>

    <TextView
        android:id="@+id/tv_extended_adv_not_supported"
        style="@style/TextViewNoteInfo"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/advertiser_note_extended_advertising_not_supported"
        android:visibility="gone" />

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