/[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 545 - (hide annotations) (download) (as text)
Fri Jan 22 10:56:48 2010 UTC (14 years, 4 months ago) by torben
File MIME type: text/xml
File size: 1021 byte(s)
Switch some sizes from px (pixels) to dp(device independent pixels) so it looks better on eg. nexus one
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     xmlns:android="http://schemas.android.com/apk/res/android">
7 torben 244
8     <ImageView
9 torben 250 android:id="@+id/TypeIcon"
10 torben 545 android:layout_width="18dp"
11     android:layout_height="18dp"
12 torben 250 android:scaleType="fitXY"
13     android:layout_gravity="center_vertical"
14     android:gravity="center_vertical"
15    
16     />
17    
18    
19     <ImageView
20     android:id="@+id/InfoIcon"
21 torben 545 android:layout_width="24dp"
22 torben 244 android:layout_height="wrap_content"
23 torben 250
24 torben 244 android:paddingRight="2px"
25 torben 250 android:paddingLeft="2px"
26     android:layout_gravity="center_vertical"
27     android:gravity="center_vertical"
28 torben 244 />
29 torben 237
30     <TextView
31     android:id="@+id/Time"
32 torben 545 android:layout_width="70dp"
33 torben 237 android:layout_height="wrap_content"
34     android:textSize="20sp"
35     />
36     <TextView
37     android:id="@+id/Destination"
38     android:layout_width="fill_parent"
39     android:layout_height="wrap_content"
40     android:textSize="20sp"
41     />
42 torben 244
43 torben 237 </LinearLayout>

  ViewVC Help
Powered by ViewVC 1.1.20