OSDN Git Service

Completed weather support; new screen-saving mode.
[android-x86/packages-apps-DeskClock.git] / res / layout / desk_clock_weather.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 <!-- Weather data from Genie provider -->
18 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
19     android:id="@+id/weather"
20     android:orientation="vertical"
21     android:layout_width="fill_parent"
22     android:layout_height="wrap_content"
23     android:layout_weight="0"
24     android:gravity="left"
25     >
26     <RelativeLayout android:id="@+id/weather_temp_icon_cluster"
27         android:layout_width="wrap_content"
28         android:layout_height="wrap_content"
29         android:layout_alignParentLeft="true"
30         android:layout_marginBottom="-4dip"
31         >
32         <TextView android:id="@+id/weather_high_temperature"
33             android:layout_width="wrap_content"
34             android:layout_height="wrap_content"
35             android:textSize="42sp"
36             android:textColor="#FFFFFFFF"
37             android:shadowColor="#C0000000"
38             android:shadowDx="0"
39             android:shadowDy="0"
40             android:shadowRadius="3.0"                        
41             android:layout_marginRight="8dip"
42             android:layout_centerVertical="true"
43             />
44         <TextView android:id="@+id/weather_low_temperature"
45             android:layout_width="wrap_content"
46             android:layout_height="wrap_content"
47             android:textSize="42sp"
48             android:textColor="#FFCCCCCC"
49             android:shadowColor="#C0000000"
50             android:shadowDx="0"
51             android:shadowDy="0"
52             android:shadowRadius="3.0"                        
53             android:layout_marginRight="8dip"
54             android:layout_centerVertical="true"
55             android:layout_toRightOf="@id/weather_high_temperature"
56             />
57         <ImageView android:id="@+id/weather_icon"
58             android:layout_width="wrap_content"
59             android:layout_height="wrap_content"
60             android:layout_toRightOf="@id/weather_low_temperature"
61             android:layout_centerVertical="true"
62             android:paddingTop="2dip"
63             />
64     </RelativeLayout>
65     <TextView android:id="@+id/weather_location"
66         android:layout_width="wrap_content"
67         android:layout_height="wrap_content"
68         android:layout_below="@id/weather_temp_icon_cluster"
69         android:gravity="left"
70         android:textSize="18sp"
71         android:textColor="#ffffffff"
72         android:shadowColor="#c0000000"
73         android:shadowDx="0"
74         android:shadowDy="0"
75         android:shadowRadius="3.0"                        
76         />
77 </RelativeLayout>