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