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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:tools="http://schemas.android.com/tools" 19 android:id="@+id/panels" 20 android:layout_width="fill_parent" 21 android:layout_height="fill_parent" 22 android:orientation="horizontal" > 23 24 <GridLayout 25 android:id="@+id/target_grid" 26 android:layout_width="0dp" 27 android:layout_height="fill_parent" 28 android:layout_weight="6" 29 android:rowCount="2" 30 android:columnCount="2"> 31 32 <SurfaceView 33 android:id="@+id/preview_view" 34 android:layout_width="240dp" 35 android:layout_height="180dp" /> 36 37 <ImageView 38 android:id="@+id/still_view" 39 android:layout_width="240dp" 40 android:layout_height="180dp" /> 41 42 <SurfaceView 43 android:id="@+id/preview_view2" 44 android:layout_width="240dp" 45 android:layout_height="180dp" /> 46 47 </GridLayout> 48 49 <ScrollView 50 android:id="@+id/controls_scroll" 51 android:layout_width="0dp" 52 android:layout_height="fill_parent" 53 android:layout_weight="2"> 54 55 <LinearLayout 56 android:id="@+id/control_bar_contents" 57 android:layout_width="match_parent" 58 android:layout_height="wrap_content" 59 android:layout_marginLeft="5dp" 60 android:orientation="vertical" > 61 62 <Spinner 63 android:id="@+id/camera_id_spinner" 64 android:layout_width="fill_parent" 65 android:layout_height="wrap_content" 66 android:spinnerMode="dropdown" 67 android:prompt="@string/camera_id_spinner_prompt" 68 /> 69 <Spinner 70 android:id="@+id/still_format_spinner" 71 android:layout_width="fill_parent" 72 android:layout_height="wrap_content" 73 android:spinnerMode="dropdown" 74 android:prompt="@string/still_format_spinner_prompt" 75 /> 76 <Button 77 android:id="@+id/info_button" 78 android:text="@string/info_button_label" 79 android:layout_width="fill_parent" 80 android:layout_height="wrap_content" 81 /> 82 83 <ToggleButton 84 android:id="@+id/start_recording" 85 android:layout_width="fill_parent" 86 android:layout_height="wrap_content" 87 android:layout_gravity="center" 88 android:layout_weight="1" 89 android:textColorLink="@android:color/holo_red_light" 90 android:textOff="@string/recording_off_label" 91 android:textOn="@string/recording_on_label" /> 92 93 <Button 94 android:id="@+id/flush_button" 95 android:text="@string/flush_button_label" 96 android:layout_width="fill_parent" 97 android:layout_height="wrap_content" 98 /> 99 100 <ToggleButton 101 android:id="@+id/focus_button" 102 android:layout_width="fill_parent" 103 android:layout_height="wrap_content" 104 android:layout_gravity="center" 105 android:layout_weight="1" 106 android:textColorLink="@android:color/holo_red_light" 107 android:textOn="@string/focus_unlock_button_label" 108 android:textOff="@string/focus_lock_button_label" /> 109 110 <View 111 android:id="@+id/horizontal_rule_1" 112 android:layout_width="fill_parent" 113 android:layout_height="1dip" 114 android:layout_marginBottom="@dimen/horiz_rule_btm_margin" 115 android:layout_marginTop="@dimen/horiz_rule_top_margin" 116 android:background="@color/horiz_rule_color" /> 117 118 <Spinner 119 android:id="@+id/focus_mode_spinner" 120 android:layout_width="fill_parent" 121 android:layout_height="wrap_content" 122 android:spinnerMode="dropdown" 123 android:prompt="@string/focus_mode_spinner_prompt" 124 /> 125 126 <CheckBox 127 android:id="@+id/use_media_codec" 128 android:layout_width="fill_parent" 129 android:layout_height="wrap_content" 130 android:text="@string/use_media_codec_label" /> 131 132 <ToggleButton 133 android:id="@+id/manual_control" 134 android:layout_width="fill_parent" 135 android:layout_height="wrap_content" 136 android:layout_gravity="center" 137 android:layout_weight="1" 138 android:textColorLink="@android:color/holo_blue_light" 139 android:textOff="@string/auto_control_label" 140 android:textOn="@string/manual_control_label" /> 141 142 <TextView 143 android:id="@+id/sensitivity_bar_label" 144 android:layout_width="wrap_content" 145 android:layout_height="wrap_content" 146 android:layout_weight="1" 147 android:text="@string/sensitivity_value_prompt" 148 android:textAppearance="?android:attr/textAppearanceSmall" /> 149 150 <SeekBar android:id="@+id/sensitivity_seekbar" 151 android:layout_width="fill_parent" 152 android:layout_height="wrap_content" 153 android:progress="0" 154 style="?android:attr/progressBarStyleHorizontal" 155 /> 156 157 <TextView 158 android:id="@+id/exposure_time_bar_label" 159 android:layout_width="wrap_content" 160 android:layout_height="wrap_content" 161 android:layout_weight="1" 162 android:text="@string/exposure_time_prompt" 163 android:textAppearance="?android:attr/textAppearanceSmall" /> 164 165 <SeekBar android:id="@+id/exposure_time_seekbar" 166 android:layout_width="fill_parent" 167 android:layout_height="wrap_content" 168 android:progress="0" 169 style="?android:attr/progressBarStyleHorizontal" 170 /> 171 172 <TextView 173 android:id="@+id/frame_duration_bar_label" 174 android:layout_width="wrap_content" 175 android:layout_height="wrap_content" 176 android:layout_weight="1" 177 android:text="@string/frame_duration_value_prompt" 178 android:textAppearance="?android:attr/textAppearanceSmall" /> 179 180 <SeekBar android:id="@+id/frame_duration_seekbar" 181 android:layout_width="fill_parent" 182 android:layout_height="wrap_content" 183 android:progress="0" 184 style="?android:attr/progressBarStyleHorizontal" 185 /> 186 187 <RadioGroup 188 android:id="@+id/radio_fmt" 189 android:layout_width="wrap_content" 190 android:layout_height="wrap_content" > 191 192 <RadioButton 193 android:id="@+id/radio_mp4" 194 android:layout_width="wrap_content" 195 android:layout_height="wrap_content" 196 android:text="@string/radio_mp4" 197 android:checked="true" /> 198 199 <RadioButton 200 android:id="@+id/radio_webm" 201 android:layout_width="wrap_content" 202 android:layout_height="wrap_content" 203 android:text="@string/radio_webm" /> 204 205 </RadioGroup> 206 207 <View 208 android:id="@+id/horizontal_rule_2" 209 android:layout_width="fill_parent" 210 android:layout_height="1dip" 211 android:layout_marginBottom="@dimen/horiz_rule_btm_margin" 212 android:layout_marginTop="@dimen/horiz_rule_top_margin" 213 android:background="@color/horiz_rule_color" /> 214 215 <TextView 216 android:id="@+id/capture_result_info_label" 217 android:layout_width="wrap_content" 218 android:layout_height="wrap_content" 219 android:layout_weight="1" 220 android:text="@string/capture_result_prompt" 221 android:textAppearance="?android:attr/textAppearanceSmall" /> 222 223 </LinearLayout> 224 </ScrollView> 225 226</LinearLayout> 227