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:orientation="vertical">
 7
 8        <com.google.android.material.appbar.AppBarLayout
 9            android:layout_width="match_parent"
10            android:layout_height="wrap_content">
11
12            <com.google.android.material.appbar.MaterialToolbar
13                android:id="@+id/toolbar"
14                android:layout_width="match_parent"
15                android:layout_height="wrap_content"
16                android:minHeight="?attr/actionBarSize" />
17
18        </com.google.android.material.appbar.AppBarLayout>
19
20        <RelativeLayout
21            android:layout_width="match_parent"
22            android:layout_height="match_parent">
23
24            <TextureView
25                android:id="@+id/scan_activity_preview"
26                android:layout_width="match_parent"
27                android:layout_height="match_parent"
28                android:keepScreenOn="true" />
29
30            <eu.siacs.conversations.ui.widget.ScannerView
31                android:id="@+id/scan_activity_mask"
32                android:layout_width="match_parent"
33                android:layout_height="match_parent" />
34        </RelativeLayout>
35
36    </LinearLayout>
37</layout>