Chiao Cheng | 64df8b2 | 2012-11-07 18:20:17 -0800 | [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" |
| 18 | android:paddingBottom="1dip" |
| 19 | android:paddingRight="1dip" |
Fabrice Di Meglio | 7eab4d4 | 2013-04-03 20:59:09 -0700 | [diff] [blame] | 20 | android:paddingEnd="1dip" |
Chiao Cheng | 64df8b2 | 2012-11-07 18:20:17 -0800 | [diff] [blame] | 21 | android:background="@null" |
Gary Mai | 69c182a | 2016-12-05 13:07:03 -0800 | [diff] [blame] | 22 | class="com.android.contacts.list.ContactTileStarredView" > |
Chiao Cheng | 64df8b2 | 2012-11-07 18:20:17 -0800 | [diff] [blame] | 23 | |
| 24 | <RelativeLayout |
| 25 | android:layout_width="match_parent" |
| 26 | android:layout_height="match_parent" > |
| 27 | |
Gary Mai | 69c182a | 2016-12-05 13:07:03 -0800 | [diff] [blame] | 28 | <com.android.contacts.widget.LayoutSuppressingImageView |
Chiao Cheng | 64df8b2 | 2012-11-07 18:20:17 -0800 | [diff] [blame] | 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" |
Fabrice Di Meglio | 7eab4d4 | 2013-04-03 20:59:09 -0700 | [diff] [blame] | 41 | android:paddingLeft="8dip" |
Chiao Cheng | 64df8b2 | 2012-11-07 18:20:17 -0800 | [diff] [blame] | 42 | android:paddingRight="8dip" |
Fabrice Di Meglio | 7eab4d4 | 2013-04-03 20:59:09 -0700 | [diff] [blame] | 43 | android:paddingStart="8dip" |
| 44 | android:paddingEnd="8dip"> |
Chiao Cheng | 64df8b2 | 2012-11-07 18:20:17 -0800 | [diff] [blame] | 45 | |
| 46 | <TextView |
| 47 | android:id="@+id/contact_tile_name" |
| 48 | android:layout_width="wrap_content" |
| 49 | android:layout_height="wrap_content" |
| 50 | android:textColor="@android:color/white" |
| 51 | android:textSize="16sp" |
| 52 | android:singleLine="true" |
| 53 | android:fadingEdge="horizontal" |
| 54 | android:fadingEdgeLength="3dip" |
Fabrice Di Meglio | 7eab4d4 | 2013-04-03 20:59:09 -0700 | [diff] [blame] | 55 | android:ellipsize="marquee" |
| 56 | android:textAlignment="viewStart" /> |
Chiao Cheng | 64df8b2 | 2012-11-07 18:20:17 -0800 | [diff] [blame] | 57 | |
| 58 | <TextView |
| 59 | android:id="@+id/contact_tile_status" |
| 60 | android:layout_width="wrap_content" |
| 61 | android:layout_height="wrap_content" |
| 62 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 63 | android:textColor="@color/people_contact_tile_status_color" |
| 64 | android:singleLine="true" |
| 65 | android:drawablePadding="4dip" |
| 66 | android:fadingEdge="horizontal" |
| 67 | android:fadingEdgeLength="3dip" |
| 68 | android:layout_marginTop="-3dip" |
| 69 | android:ellipsize="marquee" /> |
| 70 | |
| 71 | </LinearLayout> |
| 72 | |
| 73 | <QuickContactBadge |
| 74 | android:id="@+id/contact_tile_quick" |
| 75 | android:layout_width="match_parent" |
| 76 | android:layout_height="match_parent" |
| 77 | android:focusable="true" |
| 78 | android:background="@null" /> |
| 79 | |
| 80 | </RelativeLayout> |
| 81 | |
| 82 | </view> |