PageRenderTime 13ms CodeModel.GetById 11ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/Sky/Sky/res/layout/widget_tiny.xml

http://android-sky.googlecode.com/
XML | 61 lines | 40 code | 7 blank | 14 comment | 0 complexity | b79ac6fb557b28a914c164ef987085ff 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="wrap_content"
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        android:layout_centerHorizontal="true" />
28
29    <LinearLayout
30        android:id="@+id/temp_block"
31        android:layout_width="wrap_content" 
32        android:layout_height="wrap_content"
33        android:layout_below="@id/icon"
34        android:layout_centerHorizontal="true"
35        android:orientation="horizontal"
36        android:duplicateParentState="true"
37        style="@style/WidgetBackground">
38
39        <TextView
40            android:id="@+id/high"
41            android:layout_width="wrap_content" 
42            android:layout_height="wrap_content"
43            android:includeFontPadding="false"
44            android:singleLine="true"
45            android:ellipsize="none"
46            style="@style/Text.High" />
47
48        <TextView
49            android:id="@+id/low"
50            android:layout_width="wrap_content" 
51            android:layout_height="fill_parent"
52            android:gravity="center_vertical"
53            android:paddingLeft="4dip"
54            android:includeFontPadding="false"
55            android:singleLine="true"
56            android:ellipsize="none"
57            style="@style/Text.Low" />
58
59    </LinearLayout>
60
61</RelativeLayout>