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:fitsSystemWindows="true"
24    android:orientation="vertical"
25    android:layout_width="fill_parent"
26    android:layout_height="fill_parent">
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="2" >
39
40            <Spinner
41                android:id="@+id/cameras_selection"
42                android:layout_width="fill_parent"
43                android:layout_height="wrap_content"/>
44
45            <TextView
46                android:id="@+id/test_label"
47                android:layout_height="wrap_content"
48                android:layout_width="fill_parent"
49                android:padding="2dp"
50                android:textSize="16sp"
51                android:gravity="left" />
52
53            <Button
54                android:id="@+id/next_button"
55                android:layout_height="wrap_content"
56                android:layout_width="wrap_content"
57                android:text="@string/next_button_text" />
58
59        </LinearLayout>
60
61    </LinearLayout>
62
63    <LinearLayout
64        android:orientation="horizontal"
65        android:layout_width="fill_parent"
66        android:layout_height="0dp"
67        android:layout_weight="1" >
68
69        <LinearLayout
70            android:orientation="vertical"
71            android:layout_width="0dp"
72            android:layout_height="fill_parent"
73            android:layout_weight="3" >
74
75            <TextureView
76                android:id="@+id/preview_view"
77                android:layout_height="0dp"
78                android:layout_width="fill_parent"
79                android:layout_weight="3" />
80            <TextView
81                android:id="@+id/preview_label"
82                android:layout_height="wrap_content"
83                android:layout_width="fill_parent"
84                android:padding="2dp"
85                android:textSize="16sp"
86                android:gravity="center" />
87
88        </LinearLayout>
89
90        <LinearLayout
91            android:orientation="vertical"
92            android:layout_width="0dp"
93            android:layout_height="fill_parent"
94            android:layout_weight="3" >
95
96            <ImageView
97                android:id="@+id/image_view"
98                android:layout_height="0dp"
99                android:layout_width="fill_parent"
100                android:layout_weight="3" />
101            <TextView
102                android:id="@+id/image_label"
103                android:layout_height="wrap_content"
104                android:layout_width="fill_parent"
105                android:padding="2dp"
106                android:textSize="16sp"
107                android:gravity="center" />
108
109        </LinearLayout>
110
111    </LinearLayout>
112
113    <include layout="@layout/pass_fail_buttons" />
114
115</LinearLayout>
116