• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2009 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<com.android.email.activity.MessageListItem
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="fill_parent"
20    android:layout_height="?android:attr/listPreferredItemHeight"
21    android:paddingRight="10dip">
22    <View
23        android:id="@+id/chip"
24        android:background="@drawable/appointment_indicator_leftside_1"
25        android:layout_width="4dip"
26        android:layout_height="fill_parent"
27        android:layout_centerVertical="true" />
28    <!-- TODO: Remove the top padding hack and align to the subject baseline -->
29    <ImageView
30        android:id="@+id/selected"
31        android:layout_width="wrap_content"
32        android:layout_height="wrap_content"
33        android:layout_toRightOf="@id/chip"
34        android:paddingTop="10dip"
35        android:paddingLeft="4dip"
36        android:src="@drawable/btn_check_buttonless_dark_off" />
37    <!-- TODO: Remove the top padding hack and align to the subject baseline -->
38    <ImageView
39        android:id="@+id/favorite"
40        android:layout_width="wrap_content"
41        android:layout_height="wrap_content"
42        android:layout_alignParentRight="true"
43        android:paddingTop="10dip"
44        android:src="@android:drawable/star_off" />
45    <TextView
46        android:id="@+id/from"
47        android:layout_width="wrap_content"
48        android:layout_height="wrap_content"
49        android:layout_toRightOf="@id/selected"
50        android:layout_toLeftOf="@id/favorite"
51        android:ellipsize="end"
52        android:singleLine="true"
53        android:textAppearance="?android:attr/textAppearanceMedium"
54        android:paddingLeft="10dip"
55        android:drawablePadding="4dip"
56        android:paddingTop="12dip" />
57    <TextView
58        android:id="@+id/date"
59        android:ellipsize="end"
60        android:singleLine="true"
61        android:textAppearance="?android:attr/textAppearanceSmall"
62        android:layout_width="wrap_content"
63        android:layout_height="wrap_content"
64        android:layout_alignParentRight="true"
65        android:layout_alignBaseline="@+id/subject" />
66    <TextView
67        android:id="@+id/subject"
68        android:ellipsize="end"
69        android:singleLine="true"
70        android:textAppearance="?android:attr/textAppearanceSmall"
71        android:layout_width="0dip"
72        android:layout_height="wrap_content"
73        android:layout_below="@id/from"
74        android:layout_alignLeft="@id/from"
75        android:layout_toLeftOf="@id/date"
76        android:paddingLeft="10dip"
77        android:layout_marginRight="6dip" />
78</com.android.email.activity.MessageListItem>
79