Home | History | Annotate | Download | only in layout
      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         <Button
     75             android:id="@+id/flush_button"
     76             android:text="@string/flush_button_label"
     77             android:layout_width="fill_parent"
     78             android:layout_height="wrap_content"
     79             />
     80 
     81         <ToggleButton
     82             android:id="@+id/focus_button"
     83             android:layout_width="fill_parent"
     84             android:layout_height="wrap_content"
     85             android:layout_gravity="center"
     86             android:layout_weight="1"
     87             android:textColorLink="@android:color/holo_red_light"
     88             android:textOn="@string/focus_unlock_button_label"
     89             android:textOff="@string/focus_lock_button_label" />
     90 
     91         <View
     92             android:id="@+id/horizontal_rule_1"
     93             android:layout_width="fill_parent"
     94             android:layout_height="1dip"
     95             android:layout_marginBottom="@dimen/horiz_rule_btm_margin"
     96             android:layout_marginTop="@dimen/horiz_rule_top_margin"
     97             android:background="@color/horiz_rule_color" />
     98 
     99         <Spinner
    100             android:id="@+id/focus_mode_spinner"
    101             android:layout_width="fill_parent"
    102             android:layout_height="wrap_content"
    103             android:spinnerMode="dropdown"
    104             android:prompt="@string/focus_mode_spinner_prompt"
    105             />
    106 
    107         <CheckBox
    108             android:id="@+id/use_media_codec"
    109             android:layout_width="fill_parent"
    110             android:layout_height="wrap_content"
    111             android:text="@string/use_media_codec_label" />
    112 
    113         <ToggleButton
    114             android:id="@+id/manual_control"
    115             android:layout_width="fill_parent"
    116             android:layout_height="wrap_content"
    117             android:layout_gravity="center"
    118             android:layout_weight="1"
    119             android:textColorLink="@android:color/holo_blue_light"
    120             android:textOff="@string/auto_control_label"
    121             android:textOn="@string/manual_control_label" />
    122 
    123         <TextView
    124             android:id="@+id/sensitivity_bar_label"
    125             android:layout_width="wrap_content"
    126             android:layout_height="wrap_content"
    127             android:layout_weight="1"
    128             android:text="@string/sensitivity_value_prompt"
    129             android:textAppearance="?android:attr/textAppearanceSmall" />
    130 
    131         <SeekBar android:id="@+id/sensitivity_seekbar"
    132             android:layout_width="fill_parent"
    133             android:layout_height="wrap_content"
    134             android:progress="0"
    135             style="?android:attr/progressBarStyleHorizontal"
    136             />
    137 
    138         <TextView
    139             android:id="@+id/exposure_time_bar_label"
    140             android:layout_width="wrap_content"
    141             android:layout_height="wrap_content"
    142             android:layout_weight="1"
    143             android:text="@string/exposure_time_prompt"
    144             android:textAppearance="?android:attr/textAppearanceSmall" />
    145 
    146         <SeekBar android:id="@+id/exposure_time_seekbar"
    147             android:layout_width="fill_parent"
    148             android:layout_height="wrap_content"
    149             android:progress="0"
    150             style="?android:attr/progressBarStyleHorizontal"
    151             />
    152 
    153         <TextView
    154             android:id="@+id/frame_duration_bar_label"
    155             android:layout_width="wrap_content"
    156             android:layout_height="wrap_content"
    157             android:layout_weight="1"
    158             android:text="@string/frame_duration_value_prompt"
    159             android:textAppearance="?android:attr/textAppearanceSmall" />
    160 
    161         <SeekBar android:id="@+id/frame_duration_seekbar"
    162             android:layout_width="fill_parent"
    163             android:layout_height="wrap_content"
    164             android:progress="0"
    165             style="?android:attr/progressBarStyleHorizontal"
    166             />
    167 
    168         <RadioGroup
    169           android:id="@+id/radio_fmt"
    170           android:layout_width="wrap_content"
    171           android:layout_height="wrap_content" >
    172 
    173           <RadioButton
    174             android:id="@+id/radio_mp4"
    175             android:layout_width="wrap_content"
    176             android:layout_height="wrap_content"
    177             android:text="@string/radio_mp4"
    178             android:checked="true" />
    179 
    180           <RadioButton
    181             android:id="@+id/radio_webm"
    182             android:layout_width="wrap_content"
    183             android:layout_height="wrap_content"
    184             android:text="@string/radio_webm" />
    185 
    186         </RadioGroup>
    187 
    188         <View
    189             android:id="@+id/horizontal_rule_2"
    190             android:layout_width="fill_parent"
    191             android:layout_height="1dip"
    192             android:layout_marginBottom="@dimen/horiz_rule_btm_margin"
    193             android:layout_marginTop="@dimen/horiz_rule_top_margin"
    194             android:background="@color/horiz_rule_color" />
    195 
    196         <TextView
    197             android:id="@+id/capture_result_info_label"
    198             android:layout_width="wrap_content"
    199             android:layout_height="wrap_content"
    200             android:layout_weight="1"
    201             android:text="@string/capture_result_prompt"
    202             android:textAppearance="?android:attr/textAppearanceSmall" />
    203 
    204     </LinearLayout>
    205   </ScrollView>
    206 
    207 </LinearLayout>
    208