<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:gravity="center_horizontal"
        android:orientation="vertical">

        <org.signal.qr.QrScannerView
            android:id="@+id/scanner"
            android:layout_width="240dp"
            android:layout_height="240dp" />

    </LinearLayout>

</FrameLayout>