blob: cfc74d805548be20fcf90080a246e5a578c80a56 [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:background="@null"
19 android:paddingBottom="1dip"
20 android:paddingRight="1dip"
21 class="com.android.contacts.list.ContactTileStarredView" >
22
23 <RelativeLayout
24 android:id="@+id/contact_tile_layout"
25 android:layout_width="match_parent"
26 android:layout_height="match_parent" >
27
28 <com.android.contacts.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:paddingRight="8dip"
42 android:paddingLeft="8dip">
43
44 <TextView
45 android:id="@+id/contact_tile_name"
46 android:layout_width="wrap_content"
47 android:layout_height="wrap_content"
48 android:textColor="@android:color/white"
49 android:textSize="16sp"
50 android:singleLine="true"
51 android:fadingEdge="horizontal"
52 android:fadingEdgeLength="3dip"
53 android:ellipsize="marquee" />
54
55 <TextView
56 android:id="@+id/contact_tile_status"
57 android:layout_width="wrap_content"
58 android:layout_height="wrap_content"
59 android:textAppearance="?android:attr/textAppearanceSmall"
60 android:textColor="@color/people_contact_tile_status_color"
61 android:singleLine="true"
62 android:drawablePadding="4dip"
63 android:paddingBottom="4dip"
64 android:fadingEdge="horizontal"
65 android:fadingEdgeLength="3dip"
66 android:layout_marginTop="-3dip"
67 android:ellipsize="marquee" />
68
69 </LinearLayout>
70
71 <View
72 android:id="@+id/contact_tile_push_state"
73 android:layout_width="match_parent"
74 android:layout_height="match_parent"
75 android:focusable="true"
76 android:background="?android:attr/selectableItemBackground" />
77
78 </RelativeLayout>
79
80</view>