<?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"
    android:layout_margin="@dimen/matter_15dp">

    <TextView
        android:id="@+id/header"
        style="@style/SilabsMatterDeviceTitle"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:text="@string/mater_scan_qr_code"
        android:textSize="@dimen/text_size_XL"
        android:textStyle="bold"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <androidx.camera.view.PreviewView
        android:id="@+id/cameraView"
        android:layout_width="match_parent"
        android:layout_height="@dimen/matter_preview_height"
        android:layout_gravity="center"
        android:layout_marginTop="-270dp"
        android:gravity="center"
        android:orientation="vertical"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/header" />

    <TextView
        android:id="@+id/InstructionTextView"
        style="@style/SilabsMatterDeviceBody"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/matter_10dp"
        android:text="@string/matter_scanner_instruction"
        android:textSize="@dimen/text_size_M"
        android:textColor="@color/silabs_redtheme_scanner_header_text_color"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/cameraView" />

    <!--        Manual Entry to MT -->
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/matter_40dp"
        android:orientation="vertical"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/InstructionTextView">

        <TextView
            style="@style/SilabsMatterDeviceTitle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/matter_scanner_info"
            android:textSize="@dimen/text_size_ML" />

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


            <EditText
                android:id="@+id/manualCodeEditText"
                android:layout_width="@dimen/matter_200dp"
                android:layout_height="wrap_content"
                android:layout_margin="@dimen/matter_5dp"
                android:layout_weight="1"
                style="@style/SilabsMatterDeviceTitle"
                android:background="@drawable/stroke_box_white_fill"
                android:hint="@string/matter_manual_qr_code"
                android:padding="@dimen/matter_10dp"
                android:singleLine="true"
                android:textSize="@dimen/text_size_M" />

            <com.google.android.material.button.MaterialButton
                android:id="@+id/submitEntry"
                style="@style/button_add_data_outlined"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_margin="@dimen/matter_5dp"
                android:layout_weight="3"
                android:textStyle="normal"
                android:layout_marginVertical="@dimen/space_S"
                android:textSize="@dimen/text_size_ML"
                android:text="@string/matter_submit"
                android:textAllCaps="false"
                app:cornerRadius="12dp"/>
        </LinearLayout>

        <TextView
            style="@style/SilabsMatterDeviceBody"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/matter_example_mt_yk" />

    </LinearLayout>

</androidx.constraintlayout.widget.ConstraintLayout>