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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 835 - (show annotations) (download) (as text)
Fri Jun 11 14:05:24 2010 UTC (13 years, 11 months ago) by torben
File MIME type: text/xml
File size: 2413 byte(s)
Add support for fetching arrivals as well
1 <?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 <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 >
15 <TextView android:id="@+id/stationName"
16 android:layout_width="wrap_content"
17 android:layout_height="wrap_content"
18 android:textSize="20sp"
19 android:textStyle="bold"
20 />
21 <TextView android:id="@+id/stationAddr"
22 android:layout_width="wrap_content"
23 android:layout_height="wrap_content"
24 android:textSize="20sp"
25 />
26 <TextView android:id="@+id/stationDistance"
27 android:layout_width="wrap_content"
28 android:layout_height="wrap_content"
29 android:textSize="18sp"
30 />
31 </LinearLayout>
32
33 <View
34 android:layout_width="fill_parent"
35 android:layout_height="2dip"
36 android:background="#aaaaaa"
37 android:padding="12dip"
38 />
39
40 <ListView android:id="@id/android:list"
41 android:layout_width="fill_parent"
42 android:layout_height="wrap_content"
43 android:clickable="false"
44 android:layout_weight="1"
45 />
46 <TextView android:id="@+id/metroonly"
47 android:layout_width="wrap_content"
48 android:layout_height="wrap_content"
49 android:visibility="gone"
50 android:text="@string/no_metro"
51
52 />
53
54 <LinearLayout
55 android:orientation="horizontal"
56 android:layout_width="fill_parent"
57 android:layout_height="wrap_content"
58 >
59 <Button
60 android:id="@+id/departurebtn"
61 android:layout_width="0dp"
62 android:layout_height="wrap_content"
63 android:layout_weight="1"
64 android:background="@drawable/custom_button_hilight"
65 android:text="@string/departurelist_departures"
66 />
67 <Button
68 android:id="@+id/arrivalbtn"
69 android:layout_width="0dp"
70 android:layout_height="wrap_content"
71 android:background="@drawable/custom_button"
72 android:layout_weight="1"
73 android:text="@string/departurelist_arrivals"/>
74 </LinearLayout>
75 </LinearLayout>

  ViewVC Help
Powered by ViewVC 1.1.20