<?xml version="1.0" encoding="utf-8"?>
<ScrollView
    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"
    android:padding="32dp">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <!-- Delay label -->
        <TextView
            android:id="@+id/delayDescription"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:text="@string/redirection_delay_description"
            android:textSize="12sp"
            app:layout_constraintTop_toTopOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintEnd_toEndOf="parent" />

        <!-- Delay slider -->
        <com.google.android.material.slider.Slider
            android:id="@+id/redirectionDelay"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:stepSize="0.5"
            android:valueFrom="2"
            android:valueTo="4"
            android:contentDescription="@string/redirection_delay_description"
            app:layout_constraintTop_toBottomOf="@id/delayDescription"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            android:layout_marginTop="8dp" />

        <!-- Position label -->
        <TextView
            android:id="@+id/heightDescription"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:text="@string/popup_position"
            android:textSize="12sp"
            app:layout_constraintTop_toBottomOf="@id/redirectionDelay"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            android:layout_marginTop="16dp" />

        <!-- Position slider -->
        <com.google.android.material.slider.Slider
            android:id="@+id/popupHeightSlider"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:valueFrom="0"
            android:valueTo="100"
            android:stepSize="1"
            android:contentDescription="@string/popup_position"
            app:layout_constraintTop_toBottomOf="@id/heightDescription"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            android:layout_marginTop="8dp" />

        <!-- Animation label -->
        <TextView
            android:id="@+id/popupEffectLabel"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:text="@string/popup_effect_label"
            android:textSize="12sp"
            app:layout_constraintTop_toBottomOf="@id/popupHeightSlider"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            android:layout_marginTop="16dp" />

        <!-- Animation dropdown -->
        <Spinner
            android:id="@+id/popupEffectSpinner"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            app:layout_constraintTop_toBottomOf="@id/popupEffectLabel"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            android:layout_marginTop="8dp" />

        <!-- Test button -->
        <Button
            android:id="@+id/popupPreview"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/test"
            app:layout_constraintTop_toBottomOf="@id/popupEffectSpinner"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            android:layout_marginTop="16dp" />

    </androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
