/[projects]/android/TrainInfo/res/layout/departurelist.xml
ViewVC logotype

Annotation of /android/TrainInfo/res/layout/departurelist.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 982 - (hide annotations) (download) (as text)
Sun Jul 11 14:58:13 2010 UTC (13 years, 10 months ago) by torben
File MIME type: text/xml
File size: 2897 byte(s)
Add support for showing station-notifications
1 torben 237 <?xml version="1.0" encoding="utf-8"?>
2     <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3     android:orientation="vertical"
4     android:layout_width="fill_parent"
5     android:layout_height="fill_parent"
6     android:padding="5dp"
7     >
8 torben 239 <LinearLayout
9     android:orientation="vertical"
10     android:layout_width="wrap_content"
11     android:layout_height="wrap_content"
12     android:id="@+id/header"
13     android:clickable="true"
14 torben 982 >
15     <LinearLayout
16     android:orientation="horizontal"
17     android:layout_width="wrap_content"
18     android:layout_height="wrap_content">
19     <TextView android:id="@+id/stationName"
20     android:layout_width="wrap_content"
21     android:layout_height="wrap_content"
22     android:textSize="20sp"
23     android:textStyle="bold"/>
24     <ImageView android:id="@+id/notifIcon"
25     android:layout_width="wrap_content"
26     android:layout_height="wrap_content"
27     android:layout_gravity="center"
28     android:layout_marginLeft="2dp"
29     android:src="@drawable/info20"
30     android:visibility="invisible"
31     />
32     </LinearLayout>
33 torben 239 <TextView android:id="@+id/stationAddr"
34     android:layout_width="wrap_content"
35     android:layout_height="wrap_content"
36     android:textSize="20sp"
37     />
38     <TextView android:id="@+id/stationDistance"
39     android:layout_width="wrap_content"
40     android:layout_height="wrap_content"
41     android:textSize="18sp"
42     />
43     </LinearLayout>
44 torben 237
45     <View
46     android:layout_width="fill_parent"
47     android:layout_height="2dip"
48     android:background="#aaaaaa"
49     android:padding="12dip"
50     />
51    
52     <ListView android:id="@id/android:list"
53     android:layout_width="fill_parent"
54     android:layout_height="wrap_content"
55     android:clickable="false"
56 torben 835 android:layout_weight="1"
57 torben 237 />
58 torben 552 <TextView android:id="@+id/metroonly"
59 torben 237 android:layout_width="wrap_content"
60     android:layout_height="wrap_content"
61 torben 552 android:visibility="gone"
62 torben 561 android:text="@string/no_metro"
63    
64 torben 237 />
65    
66 torben 835 <LinearLayout
67     android:orientation="horizontal"
68     android:layout_width="fill_parent"
69     android:layout_height="wrap_content"
70     >
71     <Button
72     android:id="@+id/departurebtn"
73     android:layout_width="0dp"
74     android:layout_height="wrap_content"
75     android:layout_weight="1"
76     android:background="@drawable/custom_button_hilight"
77     android:text="@string/departurelist_departures"
78     />
79     <Button
80     android:id="@+id/arrivalbtn"
81     android:layout_width="0dp"
82     android:layout_height="wrap_content"
83     android:background="@drawable/custom_button"
84     android:layout_weight="1"
85     android:text="@string/departurelist_arrivals"/>
86     </LinearLayout>
87 torben 237 </LinearLayout>

  ViewVC Help
Powered by ViewVC 1.1.20