videochatcameratest_activity.xml revision c9bc9958cc1f0261cb0c87070d9e8e00558f9b52
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 </LinearLayout> 133 134 <CheckBox android:id="@+id/repeatcheckbox" 135 android:layout_width="wrap_content" 136 android:layout_height="wrap_content" 137 android:text="@string/forever" 138 android:checked="false" /> 139 140 <TextView android:id="@+id/status" 141 android:layout_width="wrap_content" 142 android:layout_height="wrap_content" 143 android:text="@string/status" /> 144 145 <Button android:id="@+id/gobutton" 146 android:layout_width="wrap_content" 147 android:layout_height="wrap_content" 148 android:text="@string/go" /> 149 150 <TextView android:id="@+id/statushistory" 151 android:layout_width="wrap_content" 152 android:layout_height="wrap_content" 153 /> 154 155 </LinearLayout> 156 </ScrollView> 157 158 159</LinearLayout> 160 161 162