blob: 9219f56a522849af0bda4fa8e70e7f05c127ab21 [file] [log] [blame]
Frank Sposaroc569acf2011-06-15 15:36:38 -07001<?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"
Daniel Lehmann2f77c852012-03-30 15:25:31 -070018 class="com.android.contacts.list.ContactTileFrequentView"
Frank Sposaroc56a4132011-06-20 11:54:05 -070019 android:focusable="true"
Frank Sposaroeea34c12011-08-14 16:20:57 -070020 android:background="?android:attr/selectableItemBackground"
Flavio Lerda8e683e82011-09-29 09:31:17 +010021 android:nextFocusRight="@+id/contact_tile_quick">
Frank Sposaroc569acf2011-06-15 15:36:38 -070022
Frank Sposaro595d6ea2011-07-20 11:03:26 -070023 <RelativeLayout
Frank Sposaroc56a4132011-06-20 11:54:05 -070024 android:layout_width="match_parent"
25 android:layout_height="match_parent" >
26
Makoto Onukida9cdc12012-02-27 16:11:50 -080027 <com.android.contacts.widget.LayoutSuppressingQuickContactBadge
28 android:id="@+id/contact_tile_quick"
Daisuke Miyakawae3f470b2011-09-08 10:33:49 -070029 android:layout_width="64dip"
30 android:layout_height="64dip"
Makoto Onukida9cdc12012-02-27 16:11:50 -080031 android:layout_alignParentRight="true"
32 android:scaleType="centerCrop"
33 android:focusable="true" />
Frank Sposaroc56a4132011-06-20 11:54:05 -070034
Frank Sposaroafc28912011-08-09 14:19:35 -070035 <LinearLayout
Frank Sposaro595d6ea2011-07-20 11:03:26 -070036 android:layout_width="match_parent"
Frank Sposaroafc28912011-08-09 14:19:35 -070037 android:layout_height="64dip"
38 android:orientation="vertical"
39 android:layout_alignParentBottom="true"
40 android:gravity="center_vertical"
41 android:paddingRight="80dip"
42 android:paddingLeft="8dip">
Frank Sposaro595d6ea2011-07-20 11:03:26 -070043
Frank Sposaroafc28912011-08-09 14:19:35 -070044 <TextView
45 android:id="@+id/contact_tile_name"
46 android:layout_width="wrap_content"
47 android:layout_height="wrap_content"
48 android:textColor="@color/primary_text_color"
49 android:textSize="18sp"
50 android:singleLine="true"
51 android:fadingEdge="horizontal"
52 android:fadingEdgeLength="3dip"
53 android:ellipsize="marquee" />
Frank Sposaro595d6ea2011-07-20 11:03:26 -070054
Frank Sposaroafc28912011-08-09 14:19:35 -070055 <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="?android:attr/textColorSecondary"
61 android:singleLine="true"
62 android:drawablePadding="4dip"
63 android:fadingEdge="horizontal"
64 android:fadingEdgeLength="3dip"
65 android:ellipsize="marquee" />
66
67 </LinearLayout>
68
69 <View
70 android:id="@+id/contact_tile_horizontal_divider"
71 android:layout_width="match_parent"
72 android:layout_height="1px"
73 android:background="?android:attr/listDivider"
Makoto Onukida9cdc12012-02-27 16:11:50 -080074 android:layout_below="@id/contact_tile_quick" />
Frank Sposaro595d6ea2011-07-20 11:03:26 -070075
76 </RelativeLayout>
Frank Sposaroc569acf2011-06-15 15:36:38 -070077
78</view>