1<?xml version="1.0" encoding="utf-8"?> 2 3<!-- Copyright (C) 2023 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<!-- Portrait orientation layout for the Camera Bokeh activity. 19 Provides a different view of the controls than the default (landscape) 20 layout. 21--> 22<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 23 android:orientation="vertical" 24 android:layout_width="fill_parent" 25 android:layout_height="fill_parent"> 26 27 <LinearLayout 28 android:orientation="horizontal" 29 android:layout_width="fill_parent" 30 android:layout_height="0dp" 31 android:layout_weight="1" > 32 33 <LinearLayout 34 android:orientation="vertical" 35 android:layout_width="0dp" 36 android:layout_height="fill_parent" 37 android:layout_weight="2" > 38 39 <Spinner 40 android:id="@+id/cameras_selection" 41 android:layout_width="fill_parent" 42 android:layout_height="wrap_content"/> 43 44 <TextView 45 android:id="@+id/test_label" 46 android:layout_height="wrap_content" 47 android:layout_width="fill_parent" 48 android:padding="2dp" 49 android:textSize="16sp" 50 android:gravity="left" /> 51 52 <Button 53 android:id="@+id/next_button" 54 android:layout_height="wrap_content" 55 android:layout_width="wrap_content" 56 android:text="@string/next_button_text" /> 57 58 </LinearLayout> 59 60 </LinearLayout> 61 62 <LinearLayout 63 android:orientation="horizontal" 64 android:layout_width="fill_parent" 65 android:layout_height="0dp" 66 android:layout_weight="1" > 67 68 <LinearLayout 69 android:orientation="vertical" 70 android:layout_width="0dp" 71 android:layout_height="fill_parent" 72 android:layout_weight="3" > 73 74 <TextureView 75 android:id="@+id/preview_view" 76 android:layout_height="0dp" 77 android:layout_width="fill_parent" 78 android:layout_weight="3" /> 79 <TextView 80 android:id="@+id/preview_label" 81 android:layout_height="wrap_content" 82 android:layout_width="fill_parent" 83 android:padding="2dp" 84 android:textSize="16sp" 85 android:gravity="center" /> 86 87 </LinearLayout> 88 89 <LinearLayout 90 android:orientation="vertical" 91 android:layout_width="0dp" 92 android:layout_height="fill_parent" 93 android:layout_weight="3" > 94 95 <ImageView 96 android:id="@+id/image_view" 97 android:layout_height="0dp" 98 android:layout_width="fill_parent" 99 android:layout_weight="3" /> 100 <TextView 101 android:id="@+id/image_label" 102 android:layout_height="wrap_content" 103 android:layout_width="fill_parent" 104 android:padding="2dp" 105 android:textSize="16sp" 106 android:gravity="center" /> 107 108 </LinearLayout> 109 110 </LinearLayout> 111 112 <include layout="@layout/pass_fail_buttons" /> 113 114</LinearLayout> 115