1 |
<?xml version="1.0" encoding="utf-8"?>
|
2 |
<!-- the parent view - provides the gray background -->
|
3 |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
4 |
android:id="@+id/outer_block1"
|
5 |
android:layout_width="match_parent"
|
6 |
android:layout_height="@dimen/roadbook_listview_container_height"
|
7 |
android:layout_gravity="center"
|
8 |
android:background="@drawable/listview_item_selector_bg"
|
9 |
android:gravity="center_vertical"
|
10 |
android:padding="1dp" >
|
11 |
|
12 |
<!-- the innner view - provides the white rectangle -->
|
13 |
|
14 |
<RelativeLayout
|
15 |
android:id="@+id/inner_block1"
|
16 |
android:layout_width="fill_parent"
|
17 |
android:layout_height="fill_parent"
|
18 |
android:background="@android:color/transparent"
|
19 |
android:orientation="horizontal" >
|
20 |
|
21 |
<!-- the icon view -->
|
22 |
|
23 |
<LinearLayout
|
24 |
android:id="@+id/road_book_left_container"
|
25 |
android:layout_width="@dimen/bottom_slide_left_side_width"
|
26 |
android:layout_height="fill_parent"
|
27 |
android:layout_alignParentLeft="true"
|
28 |
android:orientation="vertical" >
|
29 |
|
30 |
<ImageView
|
31 |
android:id="@+id/ivIcon"
|
32 |
android:layout_width="fill_parent"
|
33 |
android:layout_height="0dp"
|
34 |
android:layout_weight="0.6"
|
35 |
android:padding="1dp"
|
36 |
android:scaleType="fitCenter" />
|
37 |
|
38 |
<TextView
|
39 |
android:id="@+id/road_book_short_distance_text"
|
40 |
android:layout_width="fill_parent"
|
41 |
android:layout_height="0dp"
|
42 |
android:layout_weight="0.4"
|
43 |
android:gravity="center"
|
44 |
android:padding="0dp"
|
45 |
android:textColor="#252525"
|
46 |
android:textSize="12dp"
|
47 |
android:textStyle="bold" />
|
48 |
</LinearLayout>
|
49 |
|
50 |
<ImageView
|
51 |
android:id="@+id/road_book_seperator_cutline"
|
52 |
android:layout_width="2dp"
|
53 |
android:layout_height="fill_parent"
|
54 |
android:layout_marginBottom="7dp"
|
55 |
android:layout_marginLeft="6dp"
|
56 |
android:layout_marginRight="6dp"
|
57 |
android:layout_marginTop="7dp"
|
58 |
android:layout_toRightOf="@+id/road_book_left_container"
|
59 |
android:background="@android:color/transparent"
|
60 |
android:elevation="9dp"
|
61 |
android:scaleType="fitXY"
|
62 |
android:src="@drawable/zanavi_cutline1" >
|
63 |
</ImageView>
|
64 |
|
65 |
<!-- the container view for the title and description -->
|
66 |
|
67 |
<RelativeLayout
|
68 |
android:layout_width="wrap_content"
|
69 |
android:layout_height="fill_parent"
|
70 |
android:layout_toRightOf="@+id/road_book_seperator_cutline"
|
71 |
android:orientation="vertical" >
|
72 |
|
73 |
<!-- the title view -->
|
74 |
|
75 |
<TextView
|
76 |
android:id="@+id/tvTitle"
|
77 |
android:layout_width="fill_parent"
|
78 |
android:layout_height="0dp"
|
79 |
android:textAppearance="@android:style/TextAppearance.Medium"
|
80 |
android:textColor="#757575" />
|
81 |
|
82 |
<!-- the description view -->
|
83 |
|
84 |
<TextView
|
85 |
android:id="@+id/tvDescription"
|
86 |
android:layout_width="fill_parent"
|
87 |
android:layout_height="fill_parent"
|
88 |
android:layout_below="@id/tvTitle"
|
89 |
android:gravity="left|center"
|
90 |
android:textAppearance="@android:style/TextAppearance.Large"
|
91 |
android:textColor="#757575" />
|
92 |
</RelativeLayout>
|
93 |
</RelativeLayout>
|
94 |
|
95 |
</RelativeLayout>
|