blob: cfc74d805548be20fcf90080a246e5a578c80a56 [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"
Frank Sposaroafc28912011-08-09 14:19:35 -070018 android:background="@null"
19 android:paddingBottom="1dip"
20 android:paddingRight="1dip"
21 class="com.android.contacts.list.ContactTileStarredView" >
Frank Sposaroc569acf2011-06-15 15:36:38 -070022
Frank Sposaro9e095d22011-07-07 15:18:38 -070023 <RelativeLayout
Frank Sposaroafc28912011-08-09 14:19:35 -070024 android:id="@+id/contact_tile_layout"
Frank Sposaroc56a4132011-06-20 11:54:05 -070025 android:layout_width="match_parent"
26 android:layout_height="match_parent" >
27
Makoto Onukida9cdc12012-02-27 16:11:50 -080028 <com.android.contacts.widget.LayoutSuppressingImageView
29 android:id="@+id/contact_tile_image"
Frank Sposaro9e095d22011-07-07 15:18:38 -070030 android:layout_width="match_parent"
Makoto Onukida9cdc12012-02-27 16:11:50 -080031 android:layout_height="match_parent"
32 android:scaleType="centerCrop" />
Frank Sposaroc56a4132011-06-20 11:54:05 -070033
Frank Sposaroafc28912011-08-09 14:19:35 -070034 <LinearLayout
Frank Sposaro595d6ea2011-07-20 11:03:26 -070035 android:layout_width="match_parent"
36 android:layout_height="@dimen/contact_tile_shadowbox_height"
Frank Sposaroafc28912011-08-09 14:19:35 -070037 android:orientation="vertical"
38 android:background="@color/contact_tile_shadow_box_color"
Frank Sposaro595d6ea2011-07-20 11:03:26 -070039 android:layout_alignParentBottom="true"
Frank Sposaroafc28912011-08-09 14:19:35 -070040 android:gravity="center_vertical"
41 android:paddingRight="8dip"
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="@android:color/white"
49 android:textSize="16sp"
50 android:singleLine="true"
51 android:fadingEdge="horizontal"
52 android:fadingEdgeLength="3dip"
53 android:ellipsize="marquee" />
Frank Sposaro9e095d22011-07-07 15:18:38 -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="@color/people_contact_tile_status_color"
61 android:singleLine="true"
62 android:drawablePadding="4dip"
Frank Sposaro3d5c5de2011-08-18 11:42:05 -070063 android:paddingBottom="4dip"
Frank Sposaroafc28912011-08-09 14:19:35 -070064 android:fadingEdge="horizontal"
65 android:fadingEdgeLength="3dip"
Katherine Kuan507d8512011-09-07 17:15:49 -070066 android:layout_marginTop="-3dip"
Frank Sposaroafc28912011-08-09 14:19:35 -070067 android:ellipsize="marquee" />
Frank Sposaro595d6ea2011-07-20 11:03:26 -070068
Frank Sposaroafc28912011-08-09 14:19:35 -070069 </LinearLayout>
Frank Sposaro9e095d22011-07-07 15:18:38 -070070
Daisuke Miyakawae1c007e2011-10-23 08:55:49 -070071 <View
Frank Sposaro9994f662011-07-28 13:11:53 -070072 android:id="@+id/contact_tile_push_state"
73 android:layout_width="match_parent"
74 android:layout_height="match_parent"
Frank Sposaroeea34c12011-08-14 16:20:57 -070075 android:focusable="true"
Frank Sposaro9994f662011-07-28 13:11:53 -070076 android:background="?android:attr/selectableItemBackground" />
77
Frank Sposaro9e095d22011-07-07 15:18:38 -070078 </RelativeLayout>
Frank Sposaroc569acf2011-06-15 15:36:38 -070079
80</view>