OSDN Git Service

merge from open-source master
[android-x86/packages-apps-DeskClock.git] / res / layout / alarm_alert.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2007 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 <LinearLayout
18     xmlns:android="http://schemas.android.com/apk/res/android"
19     android:layout_width="fill_parent" 
20     android:layout_height="fill_parent">
21
22     <LinearLayout
23         android:layout_width="wrap_content"
24         android:layout_height="wrap_content"
25         android:layout_gravity="center"
26         android:gravity="center_horizontal"
27         android:background="@drawable/dialog"
28         android:orientation="vertical">
29
30         <TextView android:id="@+id/alertTitle"
31             style="?android:attr/textAppearanceLarge"
32             android:singleLine="true"
33             android:ellipsize="end"
34             android:gravity="center"
35             android:layout_width="fill_parent"
36             android:layout_height="wrap_content" />
37         <ImageView
38             android:layout_width="fill_parent"
39             android:layout_height="1dip"
40             android:scaleType="fitXY"
41             android:gravity="fill_horizontal"
42             android:src="@*android:drawable/dialog_divider_horizontal_light"
43             android:layout_marginLeft="10dip"
44             android:layout_marginRight="10dip"/>
45
46         <LinearLayout
47             android:id="@+id/clockView"
48             android:layout_width="210dip"
49             android:layout_height="210dip"
50             android:gravity="center"/>
51
52         <LinearLayout
53             android:layout_width="wrap_content"
54             android:layout_height="wrap_content"
55             style="@android:style/ButtonBar">
56
57             <Button
58                 android:id="@+id/snooze"
59                 android:layout_width="wrap_content"
60                 android:layout_height="wrap_content"
61                 android:layout_weight="3"
62                 android:text="@string/alarm_alert_snooze_text" />
63
64             <!-- blank stretchable view -->
65             <View
66                 android:layout_width="2dip"
67                 android:layout_height="2dip"
68                 android:layout_gravity="fill_horizontal"
69                 android:layout_weight="1"/>
70
71             <Button
72                 android:id="@+id/dismiss"
73                 android:layout_width="wrap_content"
74                 android:layout_height="wrap_content"
75                 android:layout_weight="3"
76                 android:text="@string/alarm_alert_dismiss_text" />
77
78         </LinearLayout>
79
80     </LinearLayout>
81
82 </LinearLayout>