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:layout_width="match_parent" 20 android:layout_height="match_parent" 21 style="@style/RootLayoutPadding"> 22 23<LinearLayout 24 android:layout_width="match_parent" 25 android:layout_height="match_parent" 26 android:orientation="vertical"> 27 28 <LinearLayout 29 android:orientation="horizontal" 30 android:layout_width="fill_parent" 31 android:layout_height="0dp" 32 android:layout_weight="1"> 33 34 <LinearLayout 35 android:orientation="vertical" 36 android:layout_width="0dp" 37 android:layout_height="fill_parent" 38 android:layout_weight="3"> 39 40 <TextureView 41 android:id="@+id/preview_view" 42 android:layout_height="0dp" 43 android:layout_width="fill_parent" 44 android:layout_weight="3" /> 45 <TextView 46 android:id="@+id/preview_label" 47 android:layout_height="wrap_content" 48 android:layout_width="fill_parent" 49 android:padding="2dp" 50 android:textSize="16sp" 51 android:gravity="center" /> 52 53 </LinearLayout> 54 <LinearLayout 55 android:orientation="vertical" 56 android:layout_width="0dp" 57 android:layout_height="fill_parent" 58 android:layout_weight="3"> 59 60 <ImageView 61 android:id="@+id/image_view" 62 android:layout_height="0dp" 63 android:layout_width="fill_parent" 64 android:layout_weight="3" /> 65 <TextView 66 android:id="@+id/image_label" 67 android:layout_height="wrap_content" 68 android:layout_width="fill_parent" 69 android:padding="2dp" 70 android:textSize="16sp" 71 android:gravity="center" /> 72 73 </LinearLayout> 74 75 <LinearLayout 76 android:orientation="vertical" 77 android:layout_width="0dp" 78 android:layout_height="fill_parent" 79 android:layout_weight="3" 80 android:gravity="bottom"> 81 82 <TextView 83 android:id="@+id/instruction_text" 84 android:layout_width="wrap_content" 85 android:layout_height="wrap_content" 86 android:text="@string/camera_hw_toggle_test_instruction" /> 87 <Button 88 android:id="@+id/take_picture_button" 89 android:layout_width="match_parent" 90 android:layout_height="wrap_content" 91 android:text="@string/co_photo_button_caption" /> 92 93 </LinearLayout> 94 95 </LinearLayout> 96 97 <include layout="@layout/pass_fail_buttons" /> 98 99</LinearLayout> 100</ScrollView> 101