/[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 1261 - (hide annotations) (download) (as text)
Mon Apr 4 22:14:40 2011 UTC (13 years, 2 months ago) by torben
File MIME type: text/xml
File size: 4733 byte(s)
Make notification icon clicable (and add a little padding to make it easier to hit)
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 torben 1053 android:id="@+id/rootView"
8 torben 237 >
9 torben 239 <LinearLayout
10     android:orientation="vertical"
11     android:layout_width="wrap_content"
12     android:layout_height="wrap_content"
13     android:id="@+id/header"
14     android:clickable="true"
15 torben 982 >
16     <LinearLayout
17     android:orientation="horizontal"
18     android:layout_width="wrap_content"
19     android:layout_height="wrap_content">
20     <TextView android:id="@+id/stationName"
21     android:layout_width="wrap_content"
22     android:layout_height="wrap_content"
23     android:textSize="20sp"
24     android:textStyle="bold"/>
25     <ImageView android:id="@+id/notifIcon"
26     android:layout_width="wrap_content"
27     android:layout_height="wrap_content"
28     android:layout_gravity="center"
29     android:layout_marginLeft="2dp"
30     android:src="@drawable/info20"
31 torben 1261 android:visibility="invisible" android:padding="3dp"/>
32 torben 982 </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 1053
59     <LinearLayout android:id="@+id/metroonly"
60     android:layout_width="fill_parent"
61     android:layout_height="wrap_content"
62     android:visibility="gone"
63     android:layout_weight="1"
64     android:orientation="vertical"
65     >
66     <TextView android:id="@+id/operations"
67     android:layout_width="wrap_content"
68     android:layout_height="wrap_content"
69     android:paddingBottom="2dp"
70 torben 1072 android:textSize="16sp"
71 torben 1053 />
72    
73    
74     <TableLayout
75     android:id="@+id/metrotable"
76     android:layout_width="fill_parent"
77     android:layout_height="wrap_content"
78     android:layout_weight="1"
79     android:stretchColumns="0,1,2"
80     >
81    
82    
83    
84     </TableLayout>
85    
86    
87    
88     <TextView
89     android:id="@+id/plan"
90     android:layout_width="wrap_content"
91 torben 1072 android:layout_height="wrap_content"
92     android:textSize="16sp"
93 torben 1053 />
94     </LinearLayout>
95    
96    
97    
98 torben 237
99 torben 835 <LinearLayout
100     android:orientation="horizontal"
101     android:layout_width="fill_parent"
102     android:layout_height="wrap_content"
103     >
104     <Button
105     android:id="@+id/departurebtn"
106     android:layout_width="0dp"
107     android:layout_height="wrap_content"
108     android:layout_weight="1"
109     android:background="@drawable/custom_button_hilight"
110     android:text="@string/departurelist_departures"
111 torben 1072 android:textSize="16sp"
112 torben 835 />
113     <Button
114     android:id="@+id/arrivalbtn"
115     android:layout_width="0dp"
116     android:layout_height="wrap_content"
117     android:background="@drawable/custom_button"
118     android:layout_weight="1"
119 torben 1072 android:text="@string/departurelist_arrivals"
120     android:textSize="16sp"
121 torben 1250 />
122     </LinearLayout>
123     <LinearLayout
124     android:orientation="horizontal"
125     android:layout_width="fill_parent"
126     android:layout_height="wrap_content"
127     >
128     <Button
129     android:id="@+id/regionalbtn"
130     android:layout_width="0dp"
131     android:layout_height="wrap_content"
132     android:layout_weight="1"
133     android:background="@drawable/custom_button_hilight"
134     android:text="@string/departurelist_regional"
135     android:textSize="16sp"
136 torben 1072 />
137 torben 1044 <Button
138 torben 1250 android:id="@+id/stogbtn"
139     android:layout_width="0dp"
140     android:layout_height="wrap_content"
141     android:background="@drawable/custom_button"
142     android:layout_weight="1"
143     android:text="@string/departurelist_stog"
144     android:textSize="16sp"
145     />
146     <Button
147 torben 1044 android:id="@+id/metrobtn"
148     android:layout_width="0dp"
149     android:layout_height="wrap_content"
150     android:background="@drawable/custom_button"
151     android:layout_weight="1"
152 torben 1072 android:text="Metro"
153     android:textSize="16sp"
154     />
155 torben 835 </LinearLayout>
156 torben 1250
157    
158 torben 237 </LinearLayout>

  ViewVC Help
Powered by ViewVC 1.1.20