OSDN Git Service

d6e8000eeb0eaa904a72b3644ac7b29f1c57a006
[android-x86/packages-apps-Gallery2.git] / res / layout / timer_setting_popup.xml
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.TimerSettingPopup 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
29                     android:id="@+id/title"
30                     android:layout_width="wrap_content"
31                     android:layout_height="wrap_content"
32                     android:ellipsize="end"
33                     android:layout_weight="1"
34                     android:minHeight="@dimen/popup_title_frame_min_height"
35                     android:gravity="center_vertical"
36                     style="@style/PopupTitleText" />
37             <Switch
38                     android:id="@+id/timer_setting_switch"
39                     android:layout_width="wrap_content"
40                     android:layout_height="match_parent"
41                     android:layout_weight="0"
42                     android:layout_marginRight="8dp"
43                     android:layout_gravity="right|center_vertical" />
44         </LinearLayout>
45
46         <View style="@style/PopupTitleSeparator" />
47
48         <TextView
49                 android:id="@+id/set_timer_help_text"
50                 android:layout_width="wrap_content"
51                 android:layout_height="wrap_content"
52                 android:paddingTop="16dip"
53                 android:paddingLeft="16dip"
54                 android:paddingRight="16dip"
55                 android:paddingBottom="16dip"
56                 android:textAppearance="?android:attr/textAppearanceMedium"
57                 android:text="@string/set_timer_help"/>
58
59         <LinearLayout
60                 android:id="@+id/time_duration_picker"
61                 android:orientation="vertical"
62                 android:layout_gravity="center_horizontal"
63                 android:layout_height="wrap_content"
64                 android:layout_width="match_parent">
65             <TextView
66                     android:id="@+id/set_time_interval_title"
67                     android:layout_width="match_parent"
68                     android:layout_height="match_parent"
69                     android:paddingTop="5dip"
70                     android:gravity="center"
71                     android:textAppearance="?android:attr/textAppearanceMedium"
72                     android:text="@string/set_duration"/>
73             <!-- A number picker to set timer -->
74             <NumberPicker
75                     android:id="@+id/duration"
76                     android:layout_width="160dp"
77                     android:layout_height="wrap_content"
78                     android:layout_marginLeft="16dip"
79                     android:layout_marginRight="16dip"
80                     android:layout_gravity="center_horizontal"
81                     android:focusable="false" />
82         </LinearLayout>
83
84         <LinearLayout
85                 android:layout_width="match_parent"
86                 android:layout_height="wrap_content"
87                 android:orientation="vertical"
88                 android:divider="?android:attr/dividerHorizontal"
89                 android:showDividers="beginning"
90                 android:dividerPadding="0dip">
91             <Button android:id="@+id/timer_set_button"
92                     android:layout_width="match_parent"
93                     android:layout_height="wrap_content"
94                     android:layout_gravity="center_horizontal"
95                     android:textAppearance="?android:attr/textAppearanceMedium"
96                     style="?android:attr/buttonBarButtonStyle"
97                     android:text="@string/time_lapse_interval_set" />
98         </LinearLayout>
99     </LinearLayout>
100
101 </com.android.camera.ui.TimerSettingPopup>