<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:padding="16dp">

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="@string/health_connect_initial_sync_dialog_message"
        android:textSize="14sp"
        android:paddingBottom="16dp" />

    <RadioGroup
        android:id="@+id/radio_group_sync_period"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <RadioButton
            android:id="@+id/radio_preset"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="@string/health_connect_initial_sync_preset" />

        <Spinner
            android:id="@+id/spinner_sync_period"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginStart="32dp"
            android:layout_marginEnd="16dp"
            android:layout_marginBottom="8dp" />

        <RadioButton
            android:id="@+id/radio_custom_date"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="@string/health_connect_initial_sync_custom_date" />

        <Button
            android:id="@+id/button_select_date"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="32dp"
            android:layout_marginEnd="16dp"
            android:text="@string/health_connect_initial_sync_select_date"
            style="?android:attr/buttonBarButtonStyle" />

    </RadioGroup>

</LinearLayout>

