blob: 25790343308126bb44dec15d63fe6f23f9f5bd07 [file] [log] [blame]
Chiao Cheng64df8b22012-11-07 18:20:17 -08001<?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"
Fabrice Di Meglio7eab4d42013-04-03 20:59:09 -070020 android:paddingEnd="1dip"
Chiao Cheng64df8b22012-11-07 18:20:17 -080021 android:background="@null"
Gary Mai69c182a2016-12-05 13:07:03 -080022 class="com.android.contacts.list.ContactTileStarredView" >
Chiao Cheng64df8b22012-11-07 18:20:17 -080023
24 <RelativeLayout
25 android:layout_width="match_parent"
26 android:layout_height="match_parent" >
27
Gary Mai69c182a2016-12-05 13:07:03 -080028 <com.android.contacts.widget.LayoutSuppressingImageView
Chiao Cheng64df8b22012-11-07 18:20:17 -080029 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"
Fabrice Di Meglio7eab4d42013-04-03 20:59:09 -070041 android:paddingLeft="8dip"
Chiao Cheng64df8b22012-11-07 18:20:17 -080042 android:paddingRight="8dip"
Fabrice Di Meglio7eab4d42013-04-03 20:59:09 -070043 android:paddingStart="8dip"
44 android:paddingEnd="8dip">
Chiao Cheng64df8b22012-11-07 18:20:17 -080045
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"
Fabrice Di Meglio7eab4d42013-04-03 20:59:09 -070055 android:ellipsize="marquee"
56 android:textAlignment="viewStart" />
Chiao Cheng64df8b22012-11-07 18:20:17 -080057
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>