Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (c) 2011, 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 <com.android.camera.ui.TimeIntervalPopup xmlns:android="http://schemas.android.com/apk/res/android"
     18         style="@style/SettingPopupWindow">
     19 
     20     <LinearLayout android:orientation="vertical"
     21             android:background="@color/popup_background"
     22             android:layout_height="wrap_content"
     23             android:layout_width="@dimen/big_setting_popup_window_width">
     24 
     25         <LinearLayout android:orientation="horizontal"
     26                 android:layout_height="wrap_content"
     27                 android:layout_width="match_parent">
     28             <TextView android:id="@+id/title"
     29                     android:layout_width="wrap_content"
     30                     android:layout_height="wrap_content"
     31                     android:gravity="center_vertical"
     32                     android:ellipsize="end"
     33                     android:layout_weight="1"
     34                     android:minHeight="@dimen/popup_title_frame_min_height"
     35                     style="@style/PopupTitleText" />
     36             <Switch
     37                     android:id="@+id/time_lapse_switch"
     38                     android:layout_width="wrap_content"
     39                     android:layout_height="match_parent"
     40                     android:layout_weight="0"
     41                     android:layout_marginRight="8dp"
     42                     android:layout_gravity="right|center_vertical" />
     43         </LinearLayout>
     44 
     45         <View style="@style/PopupTitleSeparator" />
     46 
     47         <LinearLayout
     48                 android:layout_width="match_parent"
     49                 android:layout_height="wrap_content"
     50                 android:orientation="vertical">
     51 
     52             <TextView
     53                     android:id="@+id/set_time_interval_help_text"
     54                     android:layout_width="wrap_content"
     55                     android:layout_height="wrap_content"
     56                     android:paddingTop="16dip"
     57                     android:paddingLeft="16dip"
     58                     android:paddingRight="16dip"
     59                     android:paddingBottom="16dip"
     60                     android:textAppearance="?android:attr/textAppearanceMedium"
     61                     android:text="@string/set_time_interval_help"/>
     62         </LinearLayout>
     63 
     64         <LinearLayout android:layout_width="match_parent"
     65                 android:layout_height="wrap_content"
     66                 android:layout_gravity="center_horizontal" >
     67                 <include layout="@layout/time_interval_picker"/>
     68         </LinearLayout>
     69 
     70         <LinearLayout
     71                 android:layout_width="match_parent"
     72                 android:layout_height="wrap_content"
     73                 android:orientation="vertical"
     74                 android:divider="?android:attr/dividerHorizontal"
     75                 android:showDividers="beginning"
     76                 android:dividerPadding="0dip">
     77             <Button android:id="@+id/time_lapse_interval_set_button"
     78                     android:layout_width="match_parent"
     79                     android:layout_height="wrap_content"
     80                     android:layout_gravity="center_horizontal"
     81                     android:textAppearance="?android:attr/textAppearanceMedium"
     82                     style="?android:attr/buttonBarButtonStyle"
     83                     android:text="@string/time_lapse_interval_set" />
     84         </LinearLayout>
     85     </LinearLayout>
     86 
     87 </com.android.camera.ui.TimeIntervalPopup>
     88