OSDN Git Service

068d03b2dde0640cbdc0bc830b048ba2ff465e19
[android-x86/packages-apps-DeskClock.git] / res / layout / desk_clock_time_date.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2009 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 <!-- digital clock & date, together -->
18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19     android:id="@+id/time_date"
20     android:orientation="vertical"
21     android:layout_width="wrap_content"
22     android:layout_height="wrap_content"
23     android:gravity="left|center_vertical"
24     android:layout_weight="1"
25     >
26
27     <com.android.deskclock.DigitalClock android:id="@+id/time"
28         android:layout_width="wrap_content"
29         android:layout_height="wrap_content"
30         android:layout_marginBottom="12dip"
31         android:layout_marginLeft="-8dip"
32         >
33         <!-- negative left margin above accounts for Clockopia's
34              generous glyph padding -->
35
36         <TextView android:id="@+id/timeDisplay"
37             android:layout_width="wrap_content"
38             android:layout_height="wrap_content"
39             android:gravity="center"
40             android:textSize="106sp"
41             android:textColor="#FFFFFFFF"
42             android:shadowColor="#C0000000"
43             android:shadowDx="0"
44             android:shadowDy="0"
45             android:shadowRadius="3.0"                        
46             />
47
48
49         <TextView android:id="@+id/am_pm"
50             android:layout_width="wrap_content"
51             android:layout_height="fill_parent"
52             android:gravity="bottom"
53             android:textSize="24sp"
54             android:singleLine="true"
55             android:layout_marginLeft="3dip"
56             android:textColor="#FFFFFFFF"
57             android:shadowColor="#C0000000"
58             android:shadowDx="0"
59             android:shadowDy="0"
60             android:shadowRadius="3.0"                        
61             />
62
63     </com.android.deskclock.DigitalClock>
64
65     <TextView android:id="@+id/date"
66         android:layout_width="wrap_content"
67         android:layout_height="wrap_content"
68         android:gravity="left"
69         android:textSize="18sp"
70         android:textColor="#FFFFFFFF"
71         android:shadowColor="#C0000000"
72         android:shadowDx="0"
73         android:shadowDy="0"
74         android:shadowRadius="3.0"                        
75         />
76
77 </LinearLayout>