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/camera_container"
21    android:background="@android:color/black"
22    android:layout_width="match_parent"
23    android:layout_height="match_parent">
24
25    <androidx.camera.view.PreviewView
26        android:id="@+id/view_finder"
27        android:layout_width="match_parent"
28        android:layout_height="match_parent" />
29
30    <ImageButton
31        android:id="@+id/flash_toggle"
32        android:layout_width="wrap_content"
33        android:layout_height="wrap_content"
34        android:layout_marginLeft="5dp"
35        android:layout_marginTop="1dp"
36        android:background="@android:drawable/btn_default"
37        android:scaleType="fitCenter"
38        android:src="@drawable/ic_flash_off"
39        android:translationZ="1dp"
40        app:layout_constraintLeft_toLeftOf="parent"
41        app:layout_constraintTop_toTopOf="parent" />
42
43    <Button
44        android:id="@+id/plus_ev_button"
45        android:layout_width="46dp"
46        android:layout_height="wrap_content"
47        android:layout_marginLeft="5dp"
48        android:layout_marginTop="1dp"
49        android:background="@android:drawable/btn_default"
50        android:scaleType="fitXY"
51        android:text="+EV"
52        android:textSize="10sp"
53        android:translationZ="1dp"
54        app:layout_constraintLeft_toRightOf="@id/flash_toggle"
55        app:layout_constraintTop_toTopOf="parent" />
56
57    <Button
58        android:id="@+id/dec_ev_button"
59        android:layout_width="46dp"
60        android:layout_height="wrap_content"
61        android:layout_marginLeft="5dp"
62        android:layout_marginTop="1dp"
63        android:background="@android:drawable/btn_default"
64        android:scaleType="fitXY"
65        android:text="-EV"
66        android:textSize="10sp"
67        android:translationZ="1dp"
68        app:layout_constraintLeft_toRightOf="@id/plus_ev_button"
69        app:layout_constraintTop_toTopOf="parent" />
70
71    <ImageButton
72        android:id="@+id/extension_toggle"
73        android:layout_width="wrap_content"
74        android:layout_height="wrap_content"
75        android:layout_marginLeft="5dp"
76        android:layout_marginTop="1dp"
77        android:background="@android:drawable/btn_default"
78        android:scaleType="fitCenter"
79        android:src="@drawable/outline_block"
80        android:translationZ="1dp"
81        app:layout_constraintRight_toRightOf="parent"
82        app:layout_constraintTop_toTopOf="parent" />
83
84    <ImageButton
85        android:id="@+id/camera_capture_button"
86        android:layout_width="@dimen/round_button_large"
87        android:layout_height="@dimen/round_button_large"
88        android:layout_marginBottom="@dimen/shutter_button_margin"
89        android:scaleType="fitCenter"
90        android:background="@drawable/ic_shutter"
91        app:layout_constraintLeft_toLeftOf="parent"
92        app:layout_constraintRight_toRightOf="parent"
93        app:layout_constraintBottom_toBottomOf="parent"/>
94
95</androidx.constraintlayout.widget.ConstraintLayout>