• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2
3<!-- Copyright (C) 2013 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19    android:orientation="vertical"
20    android:layout_width="fill_parent"
21    android:layout_height="fill_parent">
22
23    <LinearLayout
24        android:orientation="horizontal"
25        android:layout_width="fill_parent"
26        android:layout_height="0dp"
27        android:layout_weight="1" >
28
29        <LinearLayout
30            android:orientation="vertical"
31            android:layout_width="0dp"
32            android:layout_height="fill_parent"
33            android:layout_weight="3"
34            android:gravity="center" >
35
36            <TextureView
37                android:id="@+id/video_capture"
38                android:layout_height="0dp"
39                android:layout_width="fill_parent"
40                android:layout_weight="3" />
41            <TextView
42                android:id="@+id/camera_video_capture_label"
43                android:layout_height="wrap_content"
44                android:layout_width="fill_parent"
45                android:text="@string/video_capture_label"
46                android:padding="2dp"
47                android:textSize="16sp"
48                android:gravity="center" />
49
50        </LinearLayout>
51        <LinearLayout
52            android:orientation="vertical"
53            android:layout_width="0dp"
54            android:layout_height="fill_parent"
55            android:layout_weight="3"
56            android:gravity="center" >
57
58            <LinearLayout
59                android:orientation="vertical"
60                android:layout_width="fill_parent"
61                android:layout_height="0dp"
62                android:layout_weight="3"
63                android:gravity="center" >
64
65                <VideoView
66                    android:id="@+id/video_playback"
67                    android:layout_alignParentLeft="true"
68                    android:layout_alignParentRight="true"
69                    android:layout_centerInParent="true"
70                    android:layout_height="wrap_content"
71                    android:layout_width="match_parent"
72                    android:focusable="false"
73                    android:focusableInTouchMode="false" />
74
75            </LinearLayout>
76
77            <TextView
78                android:id="@+id/camera_video_playback_label"
79                android:layout_height="wrap_content"
80                android:layout_width="fill_parent"
81                android:text="@string/video_playback_label"
82                android:padding="2dp"
83                android:textSize="16sp"
84                android:gravity="center" />
85
86        </LinearLayout>
87
88        <LinearLayout
89            android:orientation="vertical"
90            android:layout_width="0dp"
91            android:layout_height="fill_parent"
92            android:layout_weight="2" >
93
94            <Spinner
95                android:id="@+id/cameras_selection"
96                android:layout_width="fill_parent"
97                android:layout_height="wrap_content"/>
98            <Spinner
99                android:id="@+id/resolution_selection"
100                android:layout_width="fill_parent"
101                android:layout_height="wrap_content"/>
102
103            <LinearLayout
104                android:orientation="horizontal"
105                android:layout_width="match_parent"
106                android:layout_height="0dp"
107                android:layout_weight="1" >
108
109                <Button
110                    android:id="@+id/record_button"
111                    android:layout_width="wrap_content"
112                    android:layout_height="wrap_content"
113                    android:text="@string/record_button_text"/>
114                <Button
115                    android:id="@+id/next_button"
116                    android:layout_height="wrap_content"
117                    android:layout_width="wrap_content"
118                    android:text="@string/next_button_text" />
119            </LinearLayout>
120
121            <LinearLayout
122                android:layout_width="match_parent"
123                android:layout_height="0dp"
124                android:layout_weight="2" >
125
126                <TextView
127                    android:id="@+id/status_label"
128                    android:layout_width="wrap_content"
129                    android:layout_height="wrap_content"
130                    android:text="@string/status_ready"
131                    android:padding="2dp"
132                    android:textSize="16sp"
133                    android:gravity="center" />
134            </LinearLayout>
135
136        </LinearLayout>
137
138    </LinearLayout>
139
140    <include layout="@layout/pass_fail_buttons" />
141
142</LinearLayout>
143