PageRenderTime 16ms CodeModel.GetById 8ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://android-sky.googlecode.com/
XML | 61 lines | 40 code | 7 blank | 14 comment | 0 complexity | 33955085f6cd4539f5013b64901c8dbf 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_centerVertical="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_toRightOf="@id/icon"
34        android:layout_centerVertical="true"
35        android:orientation="vertical"
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:gravity="center_horizontal"
44            android:includeFontPadding="false"
45            android:singleLine="true"
46            android:ellipsize="none"
47            style="@style/Text.High" />
48
49        <TextView
50            android:id="@+id/low"
51            android:layout_width="fill_parent" 
52            android:layout_height="wrap_content"
53            android:gravity="center_horizontal"
54            android:includeFontPadding="false"
55            android:singleLine="true"
56            android:ellipsize="none"
57            style="@style/Text.Low" />
58
59    </LinearLayout>
60
61</RelativeLayout>