<?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="match_parent"
    android:orientation="vertical"
    android:padding="16dp">

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="@string/dev_diag_intro"
        android:textSize="13sp" />

    <Button
        android:id="@+id/btn_dev_diag_stop"
        style="@style/Widget.MaterialComponents.Button.OutlinedButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        android:text="@string/dev_diag_stop" />

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_marginTop="8dp"
        android:layout_weight="1"
        android:fillViewport="true">

        <LinearLayout
            android:id="@+id/dev_diag_cards"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:paddingBottom="16dp">

            <include
                android:id="@+id/dev_diag_hw"
                layout="@layout/view_dev_diag_card" />

            <include
                android:id="@+id/dev_diag_camera"
                layout="@layout/view_dev_diag_card" />

            <include
                android:id="@+id/dev_diag_audio"
                layout="@layout/view_dev_diag_card" />

            <include
                android:id="@+id/dev_diag_network"
                layout="@layout/view_dev_diag_card" />

            <include
                android:id="@+id/dev_diag_casting"
                layout="@layout/view_dev_diag_card" />
        </LinearLayout>
    </ScrollView>
</LinearLayout>
