<?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"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <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" />

    <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"
        android:text=""
        android:textAllCaps="false"
        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"
        android:text=""
        android:textAllCaps="false"
        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" />

    <TextView
        android:id="@+id/textView"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:textStyle="bold"
        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/question"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:textStyle="bold"
        android:paddingStart="16dp"
        android:paddingEnd="16dp"
        android:paddingTop="8dp"
        android:paddingBottom="8dp"
        app:layout_constraintTop_toBottomOf="@id/textView"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintWidth_percent="0.9" />

    <ScrollView
        android:id="@+id/radioScroll"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:fillViewport="true"
        android:clipToPadding="false"
        android:paddingTop="8dp"
        android:paddingBottom="8dp"
        app:layout_constraintTop_toBottomOf="@id/question"
        app:layout_constraintBottom_toTopOf="@id/Qnext"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintWidth_percent="0.80">

        <RadioGroup
            android:id="@+id/RadioGroup"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:padding="8dp" />
    </ScrollView>

</androidx.constraintlayout.widget.ConstraintLayout>
