activity_scan.xml

 1<?xml version="1.0" encoding="utf-8"?>
 2<layout xmlns:android="http://schemas.android.com/apk/res/android">
 3    <LinearLayout
 4        android:layout_width="match_parent"
 5        android:layout_height="match_parent"
 6        android:fitsSystemWindows="true"
 7        android:orientation="vertical">
 8
 9        <com.google.android.material.appbar.AppBarLayout
10            android:layout_width="match_parent"
11            android:layout_height="wrap_content">
12
13            <com.google.android.material.appbar.MaterialToolbar
14                android:id="@+id/toolbar"
15                android:layout_width="match_parent"
16                android:layout_height="wrap_content"
17                android:minHeight="?attr/actionBarSize" />
18
19        </com.google.android.material.appbar.AppBarLayout>
20
21        <RelativeLayout
22            android:layout_width="match_parent"
23            android:layout_height="match_parent">
24
25            <TextureView
26                android:id="@+id/scan_activity_preview"
27                android:layout_width="match_parent"
28                android:layout_height="match_parent"
29                android:keepScreenOn="true" />
30
31            <eu.siacs.conversations.ui.widget.ScannerView
32                android:id="@+id/scan_activity_mask"
33                android:layout_width="match_parent"
34                android:layout_height="match_parent" />
35        </RelativeLayout>
36
37    </LinearLayout>
38</layout>