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 </GridLayout> 43 44 <ScrollView 45 android:id="@+id/controls_scroll" 46 android:layout_width="0dp" 47 android:layout_height="fill_parent" 48 android:layout_weight="2"> 49 50 <LinearLayout 51 android:id="@+id/control_bar_contents" 52 android:layout_width="match_parent" 53 android:layout_height="wrap_content" 54 android:layout_marginLeft="5dp" 55 android:orientation="vertical" > 56 57 <Button 58 android:id="@+id/info_button" 59 android:text="@string/info_button_label" 60 android:layout_width="fill_parent" 61 android:layout_height="wrap_content" 62 /> 63 64 <ToggleButton 65 android:id="@+id/start_recording" 66 android:layout_width="fill_parent" 67 android:layout_height="wrap_content" 68 android:layout_gravity="center" 69 android:layout_weight="1" 70 android:textColorLink="@android:color/holo_red_light" 71 android:textOff="@string/recording_off_label" 72 android:textOn="@string/recording_on_label" /> 73 74 <View 75 android:id="@+id/horizontal_rule_1" 76 android:layout_width="fill_parent" 77 android:layout_height="1dip" 78 android:layout_marginBottom="@dimen/horiz_rule_btm_margin" 79 android:layout_marginTop="@dimen/horiz_rule_top_margin" 80 android:background="@color/horiz_rule_color" /> 81 82 <ToggleButton 83 android:id="@+id/manual_control" 84 android:layout_width="fill_parent" 85 android:layout_height="wrap_content" 86 android:layout_gravity="center" 87 android:layout_weight="1" 88 android:textColorLink="@android:color/holo_blue_light" 89 android:textOff="@string/auto_control_label" 90 android:textOn="@string/manual_control_label" /> 91 92 <TextView 93 android:id="@+id/sensitivity_bar_label" 94 android:layout_width="wrap_content" 95 android:layout_height="wrap_content" 96 android:layout_weight="1" 97 android:text="@string/sensitivity_value_prompt" 98 android:textAppearance="?android:attr/textAppearanceSmall" /> 99 100 <SeekBar android:id="@+id/sensitivity_seekbar" 101 android:layout_width="fill_parent" 102 android:layout_height="wrap_content" 103 android:progress="0" 104 style="?android:attr/progressBarStyleHorizontal" 105 /> 106 107 <TextView 108 android:id="@+id/exposure_time_bar_label" 109 android:layout_width="wrap_content" 110 android:layout_height="wrap_content" 111 android:layout_weight="1" 112 android:text="@string/exposure_time_prompt" 113 android:textAppearance="?android:attr/textAppearanceSmall" /> 114 115 <SeekBar android:id="@+id/exposure_time_seekbar" 116 android:layout_width="fill_parent" 117 android:layout_height="wrap_content" 118 android:progress="0" 119 style="?android:attr/progressBarStyleHorizontal" 120 /> 121 122 <TextView 123 android:id="@+id/frame_duration_bar_label" 124 android:layout_width="wrap_content" 125 android:layout_height="wrap_content" 126 android:layout_weight="1" 127 android:text="@string/frame_duration_value_prompt" 128 android:textAppearance="?android:attr/textAppearanceSmall" /> 129 130 <SeekBar android:id="@+id/frame_duration_seekbar" 131 android:layout_width="fill_parent" 132 android:layout_height="wrap_content" 133 android:progress="0" 134 style="?android:attr/progressBarStyleHorizontal" 135 /> 136 137 <View 138 android:id="@+id/horizontal_rule_2" 139 android:layout_width="fill_parent" 140 android:layout_height="1dip" 141 android:layout_marginBottom="@dimen/horiz_rule_btm_margin" 142 android:layout_marginTop="@dimen/horiz_rule_top_margin" 143 android:background="@color/horiz_rule_color" /> 144 145 <TextView 146 android:id="@+id/capture_result_info_label" 147 android:layout_width="wrap_content" 148 android:layout_height="wrap_content" 149 android:layout_weight="1" 150 android:text="@string/capture_result_prompt" 151 android:textAppearance="?android:attr/textAppearanceSmall" /> 152 153 </LinearLayout> 154 </ScrollView> 155 156 </LinearLayout> 157