OSDN Git Service

e4d1ff941a6204bec8f5d724556d30621e878067
[android-x86/packages-apps-DeskClock.git] / res / layout / alarm_clock.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 xmlns:android="http://schemas.android.com/apk/res/android"
18     android:id="@+id/base_layout"
19     android:layout_width="match_parent"
20     android:layout_height="match_parent"
21     android:orientation="vertical"> 
22
23     <LinearLayout android:id="@+id/add_alarm"
24         android:clickable="true"
25         android:focusable="true"
26         android:background="@android:drawable/list_selector_background"
27         android:layout_width="match_parent"
28         android:layout_height="wrap_content"
29         android:orientation="horizontal">
30
31         <ImageView
32             style="@style/alarm_list_left_column"
33             android:duplicateParentState="true"
34             android:gravity="center"
35             android:scaleType="center"
36             android:src="@drawable/add_alarm" />
37
38         <TextView
39             android:layout_height="wrap_content"
40             android:layout_width="wrap_content"
41             android:layout_gravity="center_vertical"
42             android:textAppearance="?android:attr/textAppearanceLarge"
43             android:textColor="?android:attr/textColorPrimary"
44             android:text="@string/add_alarm" />
45
46     </LinearLayout>
47
48     <ImageView
49         android:layout_width="match_parent"
50         android:layout_height="wrap_content"
51         android:scaleType="fitXY"
52         android:gravity="fill_horizontal"
53         android:src="@android:drawable/divider_horizontal_dark" />
54
55     <ListView
56         android:id="@+id/alarms_list"
57         android:layout_width="match_parent"
58         android:layout_height="wrap_content"
59         android:layout_weight="1" />
60
61     <LinearLayout
62         android:layout_width="match_parent"
63         android:layout_height="wrap_content"
64         android:orientation="horizontal" >
65
66         <ImageButton android:id="@+id/desk_clock_button"
67             style="@style/ButtonStripLeft"
68             android:layout_width="wrap_content"
69             android:layout_height="wrap_content"
70             android:src="@drawable/ic_clock_strip_desk_clock"
71             android:contentDescription="@string/desk_clock_button_description"/>
72
73         <com.android.deskclock.DigitalClock
74             style="@style/ButtonStripRight"
75             android:layout_width="match_parent"
76             android:layout_height="match_parent">
77
78             <LinearLayout
79                 android:layout_width="match_parent"
80                 android:layout_height="wrap_content"
81                 android:baselineAligned="true">
82
83                 <TextView android:id="@+id/timeDisplay"
84                     android:layout_width="wrap_content"
85                     android:layout_height="wrap_content"
86                     android:paddingRight="6dip"
87                     android:textSize="48sp"
88                     android:textColor="?android:attr/textColorPrimary" />
89
90                 <TextView android:id="@+id/am_pm"
91                     android:layout_width="wrap_content"
92                     android:layout_height="wrap_content"
93                     android:textAppearance="?android:attr/textAppearanceSmall"
94                     android:textStyle="bold"
95                     android:textColor="?android:attr/textColorPrimary" />
96
97             </LinearLayout>
98
99       </com.android.deskclock.DigitalClock>
100
101     </LinearLayout>
102
103 </LinearLayout>