1<?xml version="1.0" encoding="utf-8"?><!--
2  Copyright 2021 The Android Open Source Project
3
4  Licensed under the Apache License, Version 2.0 (the "License");
5  you may not use this file except in compliance with the License.
6  You may obtain a copy of the License at
7
8       http://www.apache.org/licenses/LICENSE-2.0
9
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15  -->
16
17<androidx.constraintlayout.widget.ConstraintLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:id="@+id/constraintLayout"
21    android:background="@android:color/darker_gray"
22    android:layout_width="match_parent"
23    android:layout_height="match_parent">
24
25    <androidx.viewpager2.widget.ViewPager2
26        android:id="@+id/photo_view_pager"
27        android:layout_width="match_parent"
28        android:layout_height="match_parent" />
29
30    <ImageView
31        android:id="@+id/photo_image_view"
32        android:layout_width="match_parent"
33        android:layout_height="match_parent"
34        android:visibility="invisible"
35        />
36
37    <ImageButton
38        android:id="@+id/fail_button"
39        android:layout_width="@dimen/round_button_medium"
40        android:layout_height="@dimen/round_button_medium"
41        android:layout_marginBottom="@dimen/shutter_button_margin"
42        android:scaleType="fitCenter"
43        android:background="@drawable/outline_error"
44        app:layout_constraintStart_toStartOf="parent"
45        app:layout_constraintEnd_toEndOf="parent"
46        app:layout_constraintHorizontal_bias="0"
47        app:layout_constraintBottom_toBottomOf="parent"/>
48
49    <ImageButton
50        android:id="@+id/capture_button"
51        android:layout_width="@dimen/round_button_medium"
52        android:layout_height="@dimen/round_button_medium"
53        android:layout_marginBottom="@dimen/shutter_button_margin"
54        android:scaleType="fitCenter"
55        android:background="@drawable/outline_photo_camera"
56        app:layout_constraintStart_toStartOf="parent"
57        app:layout_constraintEnd_toEndOf="parent"
58        app:layout_constraintHorizontal_bias="0.5"
59        app:layout_constraintBottom_toBottomOf="parent"/>
60
61    <ImageButton
62        android:id="@+id/pass_button"
63        android:layout_width="@dimen/round_button_medium"
64        android:layout_height="@dimen/round_button_medium"
65        android:layout_marginBottom="@dimen/shutter_button_margin"
66        android:scaleType="fitCenter"
67        android:background="@drawable/outline_check_circle"
68        app:layout_constraintStart_toStartOf="parent"
69        app:layout_constraintEnd_toEndOf="parent"
70        app:layout_constraintHorizontal_bias="1"
71        app:layout_constraintBottom_toBottomOf="parent"/>
72
73</androidx.constraintlayout.widget.ConstraintLayout>