Frank Sposaro | c569acf | 2011-06-15 15:36:38 -0700 | [diff] [blame] | 1 | <?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 Sposaro | afc2891 | 2011-08-09 14:19:35 -0700 | [diff] [blame] | 18 | android:background="@null" |
| 19 | android:paddingBottom="1dip" |
| 20 | android:paddingRight="1dip" |
| 21 | class="com.android.contacts.list.ContactTileStarredView" > |
Frank Sposaro | c569acf | 2011-06-15 15:36:38 -0700 | [diff] [blame] | 22 | |
Frank Sposaro | 9e095d2 | 2011-07-07 15:18:38 -0700 | [diff] [blame] | 23 | <RelativeLayout |
Frank Sposaro | afc2891 | 2011-08-09 14:19:35 -0700 | [diff] [blame] | 24 | android:id="@+id/contact_tile_layout" |
Frank Sposaro | c56a413 | 2011-06-20 11:54:05 -0700 | [diff] [blame] | 25 | android:layout_width="match_parent" |
| 26 | android:layout_height="match_parent" > |
| 27 | |
Daisuke Miyakawa | ef0513f | 2011-09-07 19:05:12 -0700 | [diff] [blame] | 28 | <view |
| 29 | class="com.android.contacts.list.ContactTileImageContainer" |
Frank Sposaro | 9e095d2 | 2011-07-07 15:18:38 -0700 | [diff] [blame] | 30 | android:layout_width="match_parent" |
Daisuke Miyakawa | ef0513f | 2011-09-07 19:05:12 -0700 | [diff] [blame] | 31 | 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 Sposaro | c56a413 | 2011-06-20 11:54:05 -0700 | [diff] [blame] | 38 | |
Frank Sposaro | afc2891 | 2011-08-09 14:19:35 -0700 | [diff] [blame] | 39 | <LinearLayout |
Frank Sposaro | 595d6ea | 2011-07-20 11:03:26 -0700 | [diff] [blame] | 40 | android:layout_width="match_parent" |
| 41 | android:layout_height="@dimen/contact_tile_shadowbox_height" |
Frank Sposaro | afc2891 | 2011-08-09 14:19:35 -0700 | [diff] [blame] | 42 | android:orientation="vertical" |
| 43 | android:background="@color/contact_tile_shadow_box_color" |
Frank Sposaro | 595d6ea | 2011-07-20 11:03:26 -0700 | [diff] [blame] | 44 | android:layout_alignParentBottom="true" |
Frank Sposaro | afc2891 | 2011-08-09 14:19:35 -0700 | [diff] [blame] | 45 | android:gravity="center_vertical" |
| 46 | android:paddingRight="8dip" |
| 47 | android:paddingLeft="8dip"> |
Frank Sposaro | 595d6ea | 2011-07-20 11:03:26 -0700 | [diff] [blame] | 48 | |
Frank Sposaro | afc2891 | 2011-08-09 14:19:35 -0700 | [diff] [blame] | 49 | <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 Sposaro | 9e095d2 | 2011-07-07 15:18:38 -0700 | [diff] [blame] | 59 | |
Frank Sposaro | afc2891 | 2011-08-09 14:19:35 -0700 | [diff] [blame] | 60 | <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 Sposaro | 3d5c5de | 2011-08-18 11:42:05 -0700 | [diff] [blame] | 68 | android:paddingBottom="4dip" |
Frank Sposaro | afc2891 | 2011-08-09 14:19:35 -0700 | [diff] [blame] | 69 | android:fadingEdge="horizontal" |
| 70 | android:fadingEdgeLength="3dip" |
Katherine Kuan | 507d851 | 2011-09-07 17:15:49 -0700 | [diff] [blame] | 71 | android:layout_marginTop="-3dip" |
Frank Sposaro | afc2891 | 2011-08-09 14:19:35 -0700 | [diff] [blame] | 72 | android:ellipsize="marquee" /> |
Frank Sposaro | 595d6ea | 2011-07-20 11:03:26 -0700 | [diff] [blame] | 73 | |
Frank Sposaro | afc2891 | 2011-08-09 14:19:35 -0700 | [diff] [blame] | 74 | </LinearLayout> |
Frank Sposaro | 9e095d2 | 2011-07-07 15:18:38 -0700 | [diff] [blame] | 75 | |
Daisuke Miyakawa | e1c007e | 2011-10-23 08:55:49 -0700 | [diff] [blame] | 76 | <View |
Frank Sposaro | 9994f66 | 2011-07-28 13:11:53 -0700 | [diff] [blame] | 77 | android:id="@+id/contact_tile_push_state" |
| 78 | android:layout_width="match_parent" |
| 79 | android:layout_height="match_parent" |
Frank Sposaro | eea34c1 | 2011-08-14 16:20:57 -0700 | [diff] [blame] | 80 | android:focusable="true" |
Frank Sposaro | 9994f66 | 2011-07-28 13:11:53 -0700 | [diff] [blame] | 81 | android:background="?android:attr/selectableItemBackground" /> |
| 82 | |
Frank Sposaro | 9e095d2 | 2011-07-07 15:18:38 -0700 | [diff] [blame] | 83 | </RelativeLayout> |
Frank Sposaro | c569acf | 2011-06-15 15:36:38 -0700 | [diff] [blame] | 84 | |
| 85 | </view> |