1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 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<view
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    android:paddingBottom="1dip"
19    android:paddingRight="1dip"
20    android:paddingEnd="1dip"
21    android:background="@null"
22    class="com.android.contacts.common.list.ContactTileStarredView" >
23
24    <RelativeLayout
25        android:layout_width="match_parent"
26        android:layout_height="match_parent" >
27
28        <com.android.contacts.common.widget.LayoutSuppressingImageView
29            android:id="@+id/contact_tile_image"
30            android:layout_width="match_parent"
31            android:layout_height="match_parent"
32            android:scaleType="centerCrop" />
33
34        <LinearLayout
35            android:layout_width="match_parent"
36            android:layout_height="@dimen/contact_tile_shadowbox_height"
37            android:orientation="vertical"
38            android:background="@color/contact_tile_shadow_box_color"
39            android:layout_alignParentBottom="true"
40            android:gravity="center_vertical"
41            android:paddingLeft="8dip"
42            android:paddingRight="8dip"
43            android:paddingStart="8dip"
44            android:paddingEnd="8dip">
45
46            <TextView
47                android:id="@+id/contact_tile_name"
48                android:layout_width="wrap_content"
49                android:layout_height="wrap_content"
50                android:textColor="@android:color/white"
51                android:textSize="16sp"
52                android:singleLine="true"
53                android:fadingEdge="horizontal"
54                android:fadingEdgeLength="3dip"
55                android:ellipsize="marquee"
56                android:textAlignment="viewStart" />
57
58            <TextView
59                android:id="@+id/contact_tile_status"
60                android:layout_width="wrap_content"
61                android:layout_height="wrap_content"
62                android:textAppearance="?android:attr/textAppearanceSmall"
63                android:textColor="@color/people_contact_tile_status_color"
64                android:singleLine="true"
65                android:drawablePadding="4dip"
66                android:fadingEdge="horizontal"
67                android:fadingEdgeLength="3dip"
68                android:layout_marginTop="-3dip"
69                android:ellipsize="marquee" />
70
71        </LinearLayout>
72
73        <QuickContactBadge
74            android:id="@+id/contact_tile_quick"
75            android:layout_width="match_parent"
76            android:layout_height="match_parent"
77            android:focusable="true"
78            android:background="@null" />
79
80    </RelativeLayout>
81
82</view>
83