1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 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<!-- RelativeLayouts have an issue enforcing minimum heights, so just
18     work around this for now with LinearLayouts. -->
19<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20    android:layout_width="match_parent"
21    android:layout_height="wrap_content"
22    android:minHeight="?android:attr/listPreferredItemHeight"
23    android:orientation="horizontal"
24
25    android:paddingStart="8dip"
26    android:paddingTop="6dip"
27    android:paddingBottom="6dip"
28    >
29    <ImageView android:id="@+id/icon"
30        android:layout_width="56dp"
31        android:layout_height="56dp"
32        android:layout_gravity="center"
33        android:layout_marginEnd="8dip"
34        android:scaleType="center"/>
35
36    <LinearLayout
37        android:orientation="vertical"
38        android:layout_width="match_parent"
39        android:layout_height="wrap_content"
40        android:layout_gravity="center_vertical"
41        >
42        <TextView android:id="@+id/message"
43            android:layout_width="match_parent"
44            android:layout_height="wrap_content"
45            android:layout_gravity="top"
46
47            android:gravity="center_vertical"
48            android:textAppearance="?android:attr/textAppearanceLarge"
49            />
50        <TextView android:id="@+id/status"
51            android:layout_width="match_parent"
52            android:layout_height="wrap_content"
53            android:layout_gravity="bottom"
54            android:minHeight="26dp"
55
56            android:textAppearance="?android:attr/textAppearanceSmall"
57            />
58    </LinearLayout>
59</LinearLayout>