• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2010 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18    android:id="@+id/item_layout"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content"
21    android:orientation="vertical"
22    android:minHeight="?android:attr/listPreferredItemHeight">
23
24    <TextView
25        android:id="@+id/title"
26        android:layout_width="fill_parent"
27        android:layout_weight="1.0"
28        android:layout_height="wrap_content"
29        android:textAppearance="?android:attr/textAppearanceMedium"
30        android:gravity="left"
31        android:paddingLeft="6dip"
32        android:paddingRight="6dip" />
33
34    <TextView
35        android:id="@+id/date"
36        android:layout_width="fill_parent"
37        android:layout_weight="1.0"
38        android:layout_height="wrap_content"
39        android:textAppearance="?android:attr/textAppearanceSmall"
40        android:gravity="left"
41        android:paddingLeft="6dip"
42        android:paddingRight="6dip" />
43
44    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
45        android:layout_width="match_parent"
46        android:layout_height="wrap_content"
47        android:orientation="horizontal"
48        android:minHeight="?android:attr/listPreferredItemHeight">
49
50       <ImageView
51           android:id="@+id/image"
52           android:layout_width="wrap_content"
53           android:layout_height="match_parent"
54           android:gravity="center_vertical"
55           android:paddingLeft="6dip" />
56
57       <TextView
58           android:id="@+id/description"
59           android:layout_width="fill_parent"
60           android:layout_weight="1.0"
61           android:layout_height="wrap_content"
62           android:textAppearance="?android:attr/textAppearanceSmall"
63           android:gravity="left"
64           android:paddingLeft="6dip"
65           android:paddingRight="6dip" />
66
67    </LinearLayout>
68
69</LinearLayout>
70