Camerx MLKIT Barcode Scanner

<?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=”.MainActivity”>
<!-- PreviewView will display live camera feed -->
<androidx.camera.view.PreviewView
 android:id=”@+id/cameraView”
 app:layout_constraintStart_toStartOf=”parent”
 app:layout_constraintBottom_toTopOf=”@+id/bottomText”
 android:layout_width=”match_parent”
 android:layout_height=”match_parent” />
<!-- We'll use this textView to display the decoded barcode value -->
<TextView
 android:id=”@+id/bottomText”
 android:layout_width=”match_parent”
 android:layout_height=”wrap_content”
 android:background=”@color/white”
 android:padding=”32dp”
 android:textSize=”24sp”
 app:layout_constraintBottom_toBottomOf=”parent”
 app:layout_constraintLeft_toLeftOf=”parent”
 app:layout_constraintRight_toRightOf=”parent”
 tools:text=”Barcode Value: “/>
</androidx.constraintlayout.widget.ConstraintLayout>
Delightful Dogfish