1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (c) 2013, 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.CountdownTimerPopup 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    <TextView
26            android:id="@+id/title"
27            style="@style/PopupTitleText"
28            android:layout_width="match_parent"
29            android:layout_height="wrap_content"
30            android:ellipsize="end"
31            android:gravity="center_vertical|center_horizontal"
32            android:minHeight="@dimen/popup_title_frame_min_height" />
33
34    <View style="@style/PopupTitleSeparator" />
35
36    <LinearLayout
37            android:id="@+id/time_duration_picker"
38            android:layout_width="match_parent"
39            android:layout_height="wrap_content"
40            android:layout_gravity="center_horizontal"
41            android:orientation="vertical" >
42
43            <TextView
44                android:id="@+id/set_time_interval_title"
45                android:layout_width="match_parent"
46                android:layout_height="match_parent"
47                android:gravity="center"
48                android:paddingTop="5dip"
49                android:text="@string/set_duration"
50                android:textAppearance="?android:attr/textAppearanceMedium" />
51            <!-- A number picker to set timer -->
52
53            <NumberPicker
54                android:id="@+id/duration"
55                android:layout_width="160dp"
56                android:layout_height="wrap_content"
57                android:layout_gravity="center_horizontal"
58                android:layout_marginLeft="16dip"
59                android:layout_marginRight="16dip"
60                android:focusable="false" />
61        </LinearLayout>
62
63        <LinearLayout
64            android:layout_width="match_parent"
65            android:layout_height="wrap_content"
66            android:orientation="vertical" >
67
68            <View
69                android:background="#40ffffff"
70                android:layout_width="match_parent"
71                android:layout_height="1dip" />
72            <LinearLayout
73                android:id="@+id/timer_sound"
74                style="@style/SettingRow" >
75
76                <TextView android:id="@+id/beep_title"
77                    style="@style/SettingItemTitle"
78                    android:text="@string/pref_camera_timer_sound_title" />
79
80                <CheckBox android:id="@+id/sound_check_box"
81                    android:layout_gravity="center_vertical|right"
82                    android:layout_width="wrap_content"
83                    android:layout_height="match_parent" />
84            </LinearLayout>
85
86            <View
87                android:background="#40ffffff"
88                android:layout_width="match_parent"
89                android:layout_height="1dip" />
90
91            <Button
92                android:id="@+id/timer_set_button"
93                style="?android:attr/buttonBarButtonStyle"
94                android:layout_width="match_parent"
95                android:layout_height="wrap_content"
96                android:layout_gravity="center_horizontal"
97                android:text="@string/time_lapse_interval_set"
98                android:textAppearance="?android:attr/textAppearanceMedium" />
99        </LinearLayout>
100    </LinearLayout>
101</com.android.camera.ui.CountdownTimerPopup>
102