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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1435 - (hide annotations) (download) (as text)
Tue May 3 16:31:57 2011 UTC (13 years ago) by torben
File MIME type: text/xml
File size: 1826 byte(s)
vertically center the time field 
1 torben 491 <LinearLayout android:id="@+id/LinearLayout01"
2 torben 247 android:layout_width="fill_parent"
3 torben 237 android:layout_height="wrap_content"
4     android:paddingBottom="4px"
5     android:paddingTop="4px"
6 torben 1434 android:orientation="vertical"
7 torben 237 xmlns:android="http://schemas.android.com/apk/res/android">
8 torben 1434
9     <LinearLayout android:id="@+id/departureRow1"
10     android:layout_width="fill_parent"
11     android:layout_height="wrap_content"
12     >
13    
14 torben 244
15 torben 1434 <ImageView
16     android:id="@+id/TypeIcon"
17     android:layout_width="18dp"
18     android:layout_height="18dp"
19     android:scaleType="fitXY"
20     android:layout_gravity="center_vertical"
21     android:gravity="center_vertical"
22     />
23    
24    
25     <ImageView
26     android:id="@+id/InfoIcon"
27     android:layout_width="24dp"
28     android:layout_height="wrap_content"
29    
30     android:paddingRight="2px"
31     android:paddingLeft="2px"
32     android:layout_gravity="center_vertical"
33     android:gravity="center_vertical"
34     />
35 torben 250
36 torben 1434 <TextView
37     android:id="@+id/Time"
38     android:layout_width="70dp"
39     android:layout_height="wrap_content"
40     android:textSize="20sp"
41 torben 1435 android:layout_gravity="center_vertical"
42 torben 1434 />
43     <TextView
44     android:id="@+id/Destination"
45     android:layout_width="fill_parent"
46     android:layout_height="wrap_content"
47     android:textSize="20sp"
48     />
49     </LinearLayout> <!-- end of first row -->
50 torben 237
51 torben 1434 <LinearLayout android:id="@+id/departureRow2"
52     android:layout_width="fill_parent"
53     android:layout_height="wrap_content"
54     android:visibility="gone"
55     >
56     <TextView
57     android:id="@+id/TrainNumber"
58     android:layout_width="112dp"
59     android:layout_height="wrap_content"
60     android:textSize="20sp"
61     />
62     <TextView
63     android:id="@+id/Origin"
64     android:layout_width="fill_parent"
65     android:layout_height="wrap_content"
66     android:textSize="20sp"
67     />
68     </LinearLayout> <!-- end of second row -->
69 torben 244
70 torben 237 </LinearLayout>

  ViewVC Help
Powered by ViewVC 1.1.20