• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2
3<!-- Copyright (C) 2022 The Android Open Source Project
4
5     Licensed under the Apache License, Version 2.0 (the "License");
6     you may not use this file except in compliance with the License.
7     You may obtain a copy of the License at
8
9          http://www.apache.org/licenses/LICENSE-2.0
10
11     Unless required by applicable law or agreed to in writing, software
12     distributed under the License is distributed on an "AS IS" BASIS,
13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14     See the License for the specific language governing permissions and
15     limitations under the License.
16-->
17
18<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
19              android:fitsSystemWindows="@bool/fit_system_windows"
20              android:layout_width="match_parent"
21              android:layout_height="match_parent"
22              style="@style/RootLayoutPadding">
23
24<LinearLayout
25      android:layout_width="match_parent"
26      android:layout_height="match_parent"
27      android:orientation="vertical">
28
29    <LinearLayout
30        android:orientation="horizontal"
31        android:layout_width="fill_parent"
32        android:layout_height="0dp"
33        android:layout_weight="1">
34
35        <LinearLayout
36            android:orientation="vertical"
37            android:layout_width="0dp"
38            android:layout_height="fill_parent"
39            android:layout_weight="3">
40
41            <TextureView
42                android:id="@+id/preview_view"
43                android:layout_height="0dp"
44                android:layout_width="fill_parent"
45                android:layout_weight="3" />
46            <TextView
47                android:id="@+id/preview_label"
48                android:layout_height="wrap_content"
49                android:layout_width="fill_parent"
50                android:padding="2dp"
51                android:textSize="16sp"
52                android:gravity="center" />
53
54        </LinearLayout>
55        <LinearLayout
56            android:orientation="vertical"
57            android:layout_width="0dp"
58            android:layout_height="fill_parent"
59            android:layout_weight="3">
60
61            <ImageView
62                android:id="@+id/image_view"
63                android:layout_height="0dp"
64                android:layout_width="fill_parent"
65                android:layout_weight="3" />
66            <TextView
67                android:id="@+id/image_label"
68                android:layout_height="wrap_content"
69                android:layout_width="fill_parent"
70                android:padding="2dp"
71                android:textSize="16sp"
72                android:gravity="center" />
73
74        </LinearLayout>
75
76        <LinearLayout
77            android:orientation="vertical"
78            android:layout_width="0dp"
79            android:layout_height="fill_parent"
80            android:layout_weight="3"
81            android:gravity="bottom">
82
83            <TextView
84                android:id="@+id/instruction_text"
85                android:layout_width="wrap_content"
86                android:layout_height="wrap_content"
87                android:text="@string/camera_hw_toggle_test_instruction" />
88            <Button
89                android:id="@+id/take_picture_button"
90                android:layout_width="match_parent"
91                android:layout_height="wrap_content"
92                android:text="@string/co_photo_button_caption" />
93
94        </LinearLayout>
95
96    </LinearLayout>
97
98    <include layout="@layout/pass_fail_buttons" />
99
100</LinearLayout>
101</ScrollView>
102