PageRenderTime 20ms CodeModel.GetById 14ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/Sky/Sky/res/layout-land/widget_med.xml

http://android-sky.googlecode.com/
XML | 83 lines | 60 code | 9 blank | 14 comment | 0 complexity | 9dc9f33e9d7595399bc7a803325bef7a MD5 | raw file
 1<?xml version="1.0" encoding="utf-8"?>
 2<!-- Copyright (C) 2009 Jeff Sharkey, http://jsharkey.org/
 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<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
18    android:id="@+id/widget"
19    android:layout_width="fill_parent"
20    android:layout_height="fill_parent"
21    android:focusable="true">
22
23    <ImageView
24        android:id="@+id/icon"
25        android:layout_width="wrap_content" 
26        android:layout_height="wrap_content" />
27
28    <RelativeLayout
29        android:layout_width="fill_parent" 
30        android:layout_height="wrap_content"
31        android:layout_alignParentBottom="true"
32        android:layout_marginLeft="32dip"
33        android:duplicateParentState="true"
34        style="@style/WidgetBackground">
35
36        <TextView
37            android:id="@+id/location"
38            android:layout_width="fill_parent" 
39            android:layout_height="wrap_content"
40            android:includeFontPadding="false"
41            android:singleLine="true"
42            android:ellipsize="end"
43            style="@style/Text.Location" />
44
45        <TextView
46            android:id="@+id/conditions"
47            android:layout_width="fill_parent"
48            android:layout_height="wrap_content"
49            android:layout_below="@id/location"
50            android:includeFontPadding="false"
51            android:paddingTop="2dip"
52            android:paddingBottom="3dip"
53            android:singleLine="true"
54            android:ellipsize="end"
55            style="@style/Text.Conditions" />
56
57        <TextView
58            android:id="@+id/high"
59            android:layout_width="wrap_content"
60            android:layout_height="wrap_content"
61            android:layout_below="@id/conditions"
62            android:includeFontPadding="false"
63            android:singleLine="true"
64            android:ellipsize="none"
65            style="@style/Text.High" />
66
67        <TextView
68            android:id="@+id/low"
69            android:layout_width="wrap_content" 
70            android:layout_height="wrap_content"
71            android:layout_alignTop="@id/high"
72            android:layout_alignBottom="@id/high"
73            android:layout_toRightOf="@id/high"
74            android:paddingLeft="4dip"
75            android:gravity="center_vertical"
76            android:includeFontPadding="false"
77            android:singleLine="true"
78            android:ellipsize="none"
79            style="@style/Text.Low" />
80
81    </RelativeLayout>
82
83</RelativeLayout>