OSDN Git Service

ed8b7572230c39d434d97444b2baa32f0e5f728b
[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="fill_parent"
20     android:layout_height="fill_parent"
21     android:orientation="vertical"> 
22
23     <LinearLayout android:id="@+id/add_alarm"
24         android:clickable="true"
25         android:focusable="true"
26         android:focusableInTouchMode="true"
27         android:background="@android:drawable/list_selector_background"
28         android:layout_width="fill_parent"
29         android:layout_height="wrap_content"
30         android:paddingTop="4dip"
31         android:paddingBottom="4dip"
32         android:orientation="horizontal">
33
34         <ImageView
35             style="@style/alarm_list_left_column"
36             android:duplicateParentState="true"
37             android:gravity="center"
38             android:scaleType="center"
39             android:src="@drawable/add_alarm" />
40
41         <TextView
42             android:layout_height="wrap_content"
43             android:layout_width="wrap_content"
44             android:layout_gravity="center_vertical"
45             android:textSize="28sp"
46             android:textColor="@color/white"
47             android:text="@string/add_alarm" />
48
49     </LinearLayout>
50
51     <ListView
52         android:id="@+id/alarms_list"
53         android:layout_width="fill_parent"
54         android:layout_height="wrap_content"
55         android:layout_weight="1" />
56
57     <LinearLayout
58         android:layout_width="fill_parent"
59         android:layout_height="wrap_content"
60         android:orientation="horizontal" >
61
62         <ImageButton android:id="@+id/desk_clock_button"
63             style="@style/ButtonStripLeft"
64             android:layout_width="wrap_content"
65             android:layout_height="wrap_content"
66             android:src="@drawable/ic_menu_desk_clock"
67             android:contentDescription="@string/desk_clock_button_description"/>
68
69         <com.android.deskclock.DigitalClock
70             style="@style/ButtonStripRight"
71             android:layout_width="fill_parent"
72             android:layout_height="fill_parent">
73
74             <LinearLayout
75                 android:layout_width="fill_parent"
76                 android:layout_height="wrap_content"
77                 android:baselineAligned="true">
78
79                 <TextView android:id="@+id/timeDisplay"
80                     android:layout_width="wrap_content"
81                     android:layout_height="wrap_content"
82                     android:paddingRight="6dip"
83                     android:textSize="42sp"
84                     android:textColor="@color/white" />
85
86                 <TextView android:id="@+id/am_pm"
87                     android:layout_width="wrap_content"
88                     android:layout_height="wrap_content"
89                     android:textSize="18sp"
90                     android:textStyle="bold"
91                     android:textColor="@color/white" />
92
93             </LinearLayout>
94
95       </com.android.deskclock.DigitalClock>
96
97     </LinearLayout>
98
99 </LinearLayout>