OSDN Git Service

UI tweaks to meet Jeff's spec.
[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:background="@android:drawable/list_selector_background"
27         android:layout_width="fill_parent"
28         android:layout_height="wrap_content"
29         android:paddingTop="4dip"
30         android:paddingBottom="4dip"
31         android:orientation="horizontal">
32
33         <ImageView
34             style="@style/alarm_list_left_column"
35             android:duplicateParentState="true"
36             android:gravity="center"
37             android:scaleType="center"
38             android:src="@drawable/add_alarm" />
39
40         <TextView
41             android:layout_height="wrap_content"
42             android:layout_width="wrap_content"
43             android:layout_gravity="center_vertical"
44             android:textAppearance="?android:attr/textAppearanceMedium"
45             android:textColor="?android:attr/textColorPrimary"
46             android:text="@string/add_alarm" />
47
48     </LinearLayout>
49
50     <ImageView
51         android:layout_width="fill_parent"
52         android:layout_height="wrap_content"
53         android:scaleType="fitXY"
54         android:gravity="fill_horizontal"
55         android:src="@android:drawable/divider_horizontal_dark" />
56
57     <ListView
58         android:id="@+id/alarms_list"
59         android:layout_width="fill_parent"
60         android:layout_height="wrap_content"
61         android:layout_weight="1" />
62
63     <LinearLayout
64         android:layout_width="fill_parent"
65         android:layout_height="wrap_content"
66         android:orientation="horizontal" >
67
68         <ImageButton android:id="@+id/desk_clock_button"
69             style="@style/ButtonStripLeft"
70             android:layout_width="wrap_content"
71             android:layout_height="wrap_content"
72             android:src="@drawable/ic_menu_desk_clock"
73             android:contentDescription="@string/desk_clock_button_description"/>
74
75         <com.android.deskclock.DigitalClock
76             style="@style/ButtonStripRight"
77             android:layout_width="fill_parent"
78             android:layout_height="fill_parent">
79
80             <LinearLayout
81                 android:layout_width="fill_parent"
82                 android:layout_height="wrap_content"
83                 android:baselineAligned="true">
84
85                 <TextView android:id="@+id/timeDisplay"
86                     android:layout_width="wrap_content"
87                     android:layout_height="wrap_content"
88                     android:paddingRight="6dip"
89                     android:textSize="48sp"
90                     android:textColor="?android:attr/textColorPrimary" />
91
92                 <TextView android:id="@+id/am_pm"
93                     android:layout_width="wrap_content"
94                     android:layout_height="wrap_content"
95                     android:textAppearance="?android:attr/textAppearanceSmall"
96                     android:textStyle="bold"
97                     android:textColor="?android:attr/textColorPrimary" />
98
99             </LinearLayout>
100
101       </com.android.deskclock.DigitalClock>
102
103     </LinearLayout>
104
105 </LinearLayout>