1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2014 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<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:custom="http://schemas.android.com/apk/res-auto"
20    xmlns:tools="http://schemas.android.com/tools"
21    android:id="@+id/panels"
22    android:layout_width="match_parent"
23    android:layout_height="match_parent"
24    android:orientation="horizontal"
25    tools:context="com.example.android.hdrviewfinder.HdrViewfinderActivity">
26
27    <com.example.android.hdrviewfinder.FixedAspectSurfaceView
28        android:id="@+id/preview"
29        android:layout_width="0dp"
30        android:layout_height="wrap_content"
31        android:layout_gravity="center_vertical"
32        android:layout_weight="4"
33        custom:aspectRatio="1.333"/>
34
35    <LinearLayout
36        android:id="@+id/control_bar_contents"
37        android:layout_width="0px"
38        android:layout_height="match_parent"
39        android:layout_weight="1"
40        android:orientation="vertical"
41        android:layout_margin="5dp">
42
43        <Button
44            android:id="@+id/help_button"
45            android:layout_width="match_parent"
46            android:layout_height="wrap_content"
47            android:text="@string/help_button"/>
48
49        <TextView
50            android:id="@+id/mode_label"
51            android:layout_width="match_parent"
52            android:layout_height="wrap_content"
53            android:textSize="16sp"
54            tools:text="MODE: HDR"/>
55
56        <TextView
57            android:id="@+id/auto_exposure_label"
58            android:layout_width="match_parent"
59            android:layout_height="wrap_content"
60            android:text="@string/auto_exposure_label"/>
61
62        <TextView
63            android:id="@+id/auto_exposure"
64            android:layout_width="match_parent"
65            android:layout_height="wrap_content"
66            android:gravity="center"
67            android:textSize="20sp"
68            tools:text="33.33 ms"/>
69
70        <TextView
71            android:id="@+id/even_exposure_label"
72            android:layout_width="match_parent"
73            android:layout_height="wrap_content"
74            android:text="@string/even_exposure_label"/>
75
76        <TextView
77            android:id="@+id/even_exposure"
78            android:layout_width="match_parent"
79            android:layout_height="wrap_content"
80            android:gravity="center"
81            android:textSize="20sp"
82            tools:text="30.30 ms"/>
83
84        <TextView
85            android:id="@+id/odd_exposure_label"
86            android:layout_width="match_parent"
87            android:layout_height="wrap_content"
88            android:text="@string/odd_exposure_label"/>
89
90        <TextView
91            android:id="@+id/odd_exposure"
92            android:layout_width="match_parent"
93            android:layout_height="wrap_content"
94            android:gravity="center"
95            android:textSize="20sp"
96            tools:text="30.30 ms"/>
97
98    </LinearLayout>
99
100</LinearLayout>
101