videochatcameratest_activity.xml revision 5ef376788944f9deb937798e96a20fd93058815b
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2010 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7  
8          http://www.apache.org/licenses/LICENSE-2.0
9  
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<!-- The top view is a layout manager that places its child views into
18     a row, here set to be vertical (so the first is at the top) -->
19
20<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
21    android:layout_width="match_parent" android:layout_height="match_parent"
22    android:orientation="vertical">
23
24    <LinearLayout
25        android:layout_width="wrap_content" android:layout_height="wrap_content"
26        android:orientation="horizontal">
27
28        <com.example.android.videochatcameratest.CameraPreviewView android:id="@+id/previewrender"
29            android:layout_width="320px" android:layout_height="240px"
30             />
31
32<!--
33        <com.example.android.videochatcameratest.RenderView android:id="@+id/render"
34            android:layout_width="320px" android:layout_height="240px" />
35-->
36
37    </LinearLayout>
38
39    <ScrollView android:id="@+id/scrollviewforhistory"
40        android:layout_width="fill_parent"
41        android:layout_height="wrap_content"
42        android:orientation="vertical"
43        >
44        <LinearLayout
45            android:layout_width="wrap_content" android:layout_height="wrap_content"
46            android:orientation="vertical">
47            <LinearLayout
48                android:layout_width="wrap_content" android:layout_height="wrap_content"
49                android:orientation="vertical">
50                <LinearLayout
51                    android:layout_width="wrap_content" android:layout_height="wrap_content"
52                    android:orientation="horizontal">
53
54                    <CheckBox android:id="@+id/frontcameracheckbox"
55                        android:layout_width="wrap_content"
56                        android:layout_height="wrap_content"
57                        android:text="@string/front"
58                        android:checked="true" />
59
60                    <CheckBox android:id="@+id/backcameracheckbox"
61                        android:layout_width="wrap_content"
62                        android:layout_height="wrap_content"
63                        android:text="@string/back"
64                        android:checked="true" />
65
66                </LinearLayout>
67
68                <LinearLayout
69                    android:layout_width="wrap_content" android:layout_height="wrap_content"
70                    android:orientation="horizontal">
71
72                    <CheckBox android:id="@+id/qvgacheckbox"
73                        android:layout_width="wrap_content"
74                        android:layout_height="wrap_content"
75                        android:text="@string/qvga"
76                        android:checked="true" />
77
78                    <CheckBox android:id="@+id/vgacheckbox"
79                        android:layout_width="wrap_content"
80                        android:layout_height="wrap_content"
81                        android:text="@string/vga"
82                        android:checked="false" />
83
84                </LinearLayout>
85
86                <LinearLayout
87                    android:layout_width="wrap_content" android:layout_height="wrap_content"
88                    android:orientation="horizontal">
89
90                    <CheckBox android:id="@+id/fps15checkbox"
91                        android:layout_width="wrap_content"
92                        android:layout_height="wrap_content"
93                        android:text="@string/fps15"
94                        android:checked="true" />
95
96                    <CheckBox android:id="@+id/fps30checkbox"
97                        android:layout_width="wrap_content"
98                        android:layout_height="wrap_content"
99                        android:text="@string/fps30"
100                        android:checked="false" />
101
102                </LinearLayout>
103            </LinearLayout>
104            <TextView android:id="@+id/status"
105                android:layout_width="wrap_content"
106                android:layout_height="wrap_content"
107                android:text="@string/rotation" />
108
109            <LinearLayout
110                android:layout_width="wrap_content" android:layout_height="wrap_content"
111                android:orientation="horizontal">
112                <CheckBox android:id="@+id/rotate0checkbox"
113                    android:layout_width="wrap_content"
114                    android:layout_height="wrap_content"
115                    android:text="@string/rotate0"
116                    android:checked="false" />
117                <CheckBox android:id="@+id/rotate90checkbox"
118                    android:layout_width="wrap_content"
119                    android:layout_height="wrap_content"
120                    android:text="@string/rotate90"
121                    android:checked="false" />
122                <CheckBox android:id="@+id/rotate180checkbox"
123                    android:layout_width="wrap_content"
124                    android:layout_height="wrap_content"
125                    android:text="@string/rotate180"
126                    android:checked="false" />
127                <CheckBox android:id="@+id/rotate270checkbox"
128                    android:layout_width="wrap_content"
129                    android:layout_height="wrap_content"
130                    android:text="@string/rotate270"
131                    android:checked="false" />
132                <CheckBox android:id="@+id/rotateautocheckbox"
133                    android:layout_width="wrap_content"
134                    android:layout_height="wrap_content"
135                    android:text="@string/rotateauto"
136                    android:checked="true" />
137            </LinearLayout>
138
139            <CheckBox android:id="@+id/repeatcheckbox"
140                android:layout_width="wrap_content"
141                android:layout_height="wrap_content"
142                android:text="@string/forever"
143                android:checked="false" />
144
145            <TextView android:id="@+id/status"
146                android:layout_width="wrap_content"
147                android:layout_height="wrap_content"
148                android:text="@string/status" />
149
150            <Button android:id="@+id/gobutton"
151                android:layout_width="wrap_content"
152                android:layout_height="wrap_content"
153                android:text="@string/go" />
154
155            <TextView android:id="@+id/statushistory"
156                android:layout_width="wrap_content"
157                android:layout_height="wrap_content"
158                />
159
160        </LinearLayout>
161    </ScrollView>
162            
163
164</LinearLayout>
165
166
167