<?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:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".TestRouteDuringCallbackActivity">

    <LinearLayout
        android:id="@+id/buttonGrid"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:fontFamily="monospace"
            android:gravity="bottom"
            android:text="@string/routing_crash_intro" />

        <RadioGroup
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:checkedButton="@+id/direction_output"
            android:orientation="horizontal">

            <RadioButton
                android:id="@+id/direction_output"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Output" />

            <RadioButton
                android:id="@+id/direction_input"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Input" />
        </RadioGroup>


        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal">

            <Button
                android:id="@+id/button_start_test"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:backgroundTint="@color/button_tint"
                android:onClick="onStartRoutingTest"
                android:text="Start Test" />
            <Button
                android:id="@+id/button_stop_test"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:backgroundTint="@color/button_tint"
                android:onClick="onStopRoutingTest"
                android:text="Stop Test" />
        </LinearLayout>

        <TextView
            android:id="@+id/text_callback_status"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:fontFamily="monospace"
            android:gravity="bottom"
            android:lines="10"
            android:text="@string/init_status" />

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