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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 545 - (show annotations) (download) (as text)
Fri Jan 22 10:56:48 2010 UTC (14 years, 3 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 <LinearLayout android:id="@+id/LinearLayout01"
2 android:layout_width="fill_parent"
3 android:layout_height="wrap_content"
4 android:paddingBottom="4px"
5 android:paddingTop="4px"
6 xmlns:android="http://schemas.android.com/apk/res/android">
7
8 <ImageView
9 android:id="@+id/TypeIcon"
10 android:layout_width="18dp"
11 android:layout_height="18dp"
12 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 android:layout_width="24dp"
22 android:layout_height="wrap_content"
23
24 android:paddingRight="2px"
25 android:paddingLeft="2px"
26 android:layout_gravity="center_vertical"
27 android:gravity="center_vertical"
28 />
29
30 <TextView
31 android:id="@+id/Time"
32 android:layout_width="70dp"
33 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
43 </LinearLayout>

  ViewVC Help
Powered by ViewVC 1.1.20