<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <androidx.constraintlayout.widget.Guideline
        android:id="@+id/gTop"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        app:layout_constraintGuide_begin="32dp" />

    <TextView
        android:id="@+id/textView"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:textStyle="bold"
        android:textColor="@color/brand_text_dark"
        android:paddingStart="16dp"
        android:paddingEnd="16dp"
        app:layout_constraintTop_toBottomOf="@id/gTop"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintWidth_percent="0.9" />

    <TextView
        android:id="@+id/note_before"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:visibility="gone"
        android:paddingStart="16dp"
        android:paddingEnd="16dp"
        app:layout_constraintTop_toBottomOf="@id/textView"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintWidth_percent="0.9" />

    <TextView
        android:id="@+id/question"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:textStyle="bold"
        android:textColor="@color/brand_text_dark"
        android:paddingStart="16dp"
        android:paddingEnd="16dp"
        android:paddingTop="8dp"
        android:paddingBottom="8dp"
        app:layout_constraintTop_toBottomOf="@id/note_before"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintWidth_percent="0.9" />

    <TextView
        android:id="@+id/note_after"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:visibility="gone"
        android:paddingStart="16dp"
        android:paddingEnd="16dp"
        app:layout_constraintTop_toBottomOf="@id/question"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintWidth_percent="0.9" />

    <TextView
        android:id="@+id/slider_value"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="12dp"
        android:textStyle="bold"
        android:textColor="@color/brand_text_dark"
        android:textSize="20sp"
        android:minHeight="28dp"
        app:layout_constraintTop_toBottomOf="@id/note_after"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent" />

    <TextView
        android:id="@+id/slider_min"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="12dp"
        android:layout_marginEnd="6dp"
        android:gravity="center"
        android:minWidth="28dp"
        android:textColor="@color/brand_text_muted"
        android:textSize="14sp"
        app:layout_constraintBottom_toBottomOf="@id/value_slider"
        app:layout_constraintEnd_toStartOf="@id/value_slider"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="@id/value_slider" />

    <SeekBar
        android:id="@+id/value_slider"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        app:layout_constraintEnd_toStartOf="@id/slider_max"
        app:layout_constraintStart_toEndOf="@id/slider_min"
        app:layout_constraintTop_toBottomOf="@id/slider_value" />

    <TextView
        android:id="@+id/slider_max"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="6dp"
        android:layout_marginEnd="12dp"
        android:gravity="center"
        android:minWidth="28dp"
        android:textColor="@color/brand_text_muted"
        android:textSize="14sp"
        app:layout_constraintBottom_toBottomOf="@id/value_slider"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toEndOf="@id/value_slider"
        app:layout_constraintTop_toTopOf="@id/value_slider" />

    <com.google.android.material.button.MaterialButton
        android:id="@+id/Qprev"
        android:layout_width="@dimen/nav_btn_size"
        android:layout_height="@dimen/nav_btn_size"
        android:layout_marginStart="20dp"
        android:layout_marginBottom="16dp"
        app:icon="@drawable/ic_chevron_left"
        app:iconTint="@color/btn_nav_left_icon_tint"
        app:iconSize="@dimen/nav_icon_size"
        app:iconPadding="0dp"
        app:cornerRadius="999dp"
        app:backgroundTint="@color/btn_nav_left_tint"
        app:rippleColor="@color/btn_nav_left_ripple"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent" />

    <com.google.android.material.button.MaterialButton
        android:id="@+id/Qnext"
        android:layout_width="@dimen/nav_btn_size"
        android:layout_height="@dimen/nav_btn_size"
        android:layout_marginEnd="20dp"
        android:layout_marginBottom="16dp"
        app:icon="@drawable/ic_chevron_right"
        app:iconTint="@color/btn_nav_right_icon_tint"
        app:iconSize="@dimen/nav_icon_size"
        app:iconPadding="0dp"
        app:cornerRadius="999dp"
        app:backgroundTint="@color/btn_nav_right_tint"
        app:rippleColor="@color/btn_nav_right_ripple"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>
