blob: 91438e9c553394617e6b4d439b057d09d2ec8e42 [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
Daisuke Miyakawaef0513f2011-09-07 19:05:12 -070028 <view
29 class="com.android.contacts.list.ContactTileImageContainer"
Frank Sposaro9e095d22011-07-07 15:18:38 -070030 android:layout_width="match_parent"
Daisuke Miyakawaef0513f2011-09-07 19:05:12 -070031 android:layout_height="match_parent">
32 <ImageView
33 android:id="@+id/contact_tile_image"
34 android:layout_width="match_parent"
35 android:layout_height="match_parent"
36 android:scaleType="centerCrop" />
37 </view>
Frank Sposaroc56a4132011-06-20 11:54:05 -070038
Frank Sposaroafc28912011-08-09 14:19:35 -070039 <LinearLayout
Frank Sposaro595d6ea2011-07-20 11:03:26 -070040 android:layout_width="match_parent"
41 android:layout_height="@dimen/contact_tile_shadowbox_height"
Frank Sposaroafc28912011-08-09 14:19:35 -070042 android:orientation="vertical"
43 android:background="@color/contact_tile_shadow_box_color"
Frank Sposaro595d6ea2011-07-20 11:03:26 -070044 android:layout_alignParentBottom="true"
Frank Sposaroafc28912011-08-09 14:19:35 -070045 android:gravity="center_vertical"
46 android:paddingRight="8dip"
47 android:paddingLeft="8dip">
Frank Sposaro595d6ea2011-07-20 11:03:26 -070048
Frank Sposaroafc28912011-08-09 14:19:35 -070049 <TextView
50 android:id="@+id/contact_tile_name"
51 android:layout_width="wrap_content"
52 android:layout_height="wrap_content"
53 android:textColor="@android:color/white"
54 android:textSize="16sp"
55 android:singleLine="true"
56 android:fadingEdge="horizontal"
57 android:fadingEdgeLength="3dip"
58 android:ellipsize="marquee" />
Frank Sposaro9e095d22011-07-07 15:18:38 -070059
Frank Sposaroafc28912011-08-09 14:19:35 -070060 <TextView
61 android:id="@+id/contact_tile_status"
62 android:layout_width="wrap_content"
63 android:layout_height="wrap_content"
64 android:textAppearance="?android:attr/textAppearanceSmall"
65 android:textColor="@color/people_contact_tile_status_color"
66 android:singleLine="true"
67 android:drawablePadding="4dip"
Frank Sposaro3d5c5de2011-08-18 11:42:05 -070068 android:paddingBottom="4dip"
Frank Sposaroafc28912011-08-09 14:19:35 -070069 android:fadingEdge="horizontal"
70 android:fadingEdgeLength="3dip"
Katherine Kuan507d8512011-09-07 17:15:49 -070071 android:layout_marginTop="-3dip"
Frank Sposaroafc28912011-08-09 14:19:35 -070072 android:ellipsize="marquee" />
Frank Sposaro595d6ea2011-07-20 11:03:26 -070073
Frank Sposaroafc28912011-08-09 14:19:35 -070074 </LinearLayout>
Frank Sposaro9e095d22011-07-07 15:18:38 -070075
Daisuke Miyakawae1c007e2011-10-23 08:55:49 -070076 <View
Frank Sposaro9994f662011-07-28 13:11:53 -070077 android:id="@+id/contact_tile_push_state"
78 android:layout_width="match_parent"
79 android:layout_height="match_parent"
Frank Sposaroeea34c12011-08-14 16:20:57 -070080 android:focusable="true"
Frank Sposaro9994f662011-07-28 13:11:53 -070081 android:background="?android:attr/selectableItemBackground" />
82
Frank Sposaro9e095d22011-07-07 15:18:38 -070083 </RelativeLayout>
Frank Sposaroc569acf2011-06-15 15:36:38 -070084
85</view>