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" |
Chiao Cheng | 396911f | 2012-12-05 12:06:58 -0800 | [diff] [blame] | 18 | class="com.android.contacts.common.list.ContactTileFrequentView" |
Chiao Cheng | 64df8b2 | 2012-11-07 18:20:17 -0800 | [diff] [blame] | 19 | android:focusable="true" |
Brian Attwell | 71d47d1 | 2014-05-29 13:45:56 -0700 | [diff] [blame] | 20 | android:background="?android:attr/selectableItemBackground"> |
Chiao Cheng | 64df8b2 | 2012-11-07 18:20:17 -0800 | [diff] [blame] | 21 | |
Brian Attwell | 71d47d1 | 2014-05-29 13:45:56 -0700 | [diff] [blame] | 22 | <LinearLayout |
Chiao Cheng | 64df8b2 | 2012-11-07 18:20:17 -0800 | [diff] [blame] | 23 | android:layout_width="match_parent" |
Brian Attwell | 71d47d1 | 2014-05-29 13:45:56 -0700 | [diff] [blame] | 24 | android:layout_height="wrap_content" |
| 25 | android:orientation="horizontal" |
| 26 | android:gravity="center_vertical" |
Brian Attwell | 71d47d1 | 2014-05-29 13:45:56 -0700 | [diff] [blame] | 27 | android:paddingTop="?list_item_padding_top" |
| 28 | android:paddingBottom="?list_item_padding_bottom"> |
Chiao Cheng | 64df8b2 | 2012-11-07 18:20:17 -0800 | [diff] [blame] | 29 | |
Brian Attwell | 71d47d1 | 2014-05-29 13:45:56 -0700 | [diff] [blame] | 30 | <com.android.contacts.common.widget.LayoutSuppressingImageView |
| 31 | android:id="@+id/contact_tile_image" |
| 32 | android:layout_width="?list_item_photo_size" |
| 33 | android:layout_height="?list_item_photo_size" |
Chiao Cheng | 64df8b2 | 2012-11-07 18:20:17 -0800 | [diff] [blame] | 34 | android:scaleType="centerCrop" |
Brian Attwell | 71d47d1 | 2014-05-29 13:45:56 -0700 | [diff] [blame] | 35 | android:layout_marginEnd="?list_item_gap_between_image_and_text"/> |
Chiao Cheng | 64df8b2 | 2012-11-07 18:20:17 -0800 | [diff] [blame] | 36 | |
Brian Attwell | 71d47d1 | 2014-05-29 13:45:56 -0700 | [diff] [blame] | 37 | <TextView |
| 38 | android:id="@+id/contact_tile_name" |
Chiao Cheng | 64df8b2 | 2012-11-07 18:20:17 -0800 | [diff] [blame] | 39 | android:layout_width="match_parent" |
Brian Attwell | 71d47d1 | 2014-05-29 13:45:56 -0700 | [diff] [blame] | 40 | android:layout_height="wrap_content" |
| 41 | android:textColor="@android:color/black" |
| 42 | android:textSize="@dimen/contact_browser_list_item_text_size" |
| 43 | android:singleLine="true" |
| 44 | android:fadingEdge="horizontal" |
| 45 | android:fadingEdgeLength="3dip" |
| 46 | android:ellipsize="marquee" |
| 47 | android:textAlignment="viewStart" /> |
Chiao Cheng | 64df8b2 | 2012-11-07 18:20:17 -0800 | [diff] [blame] | 48 | |
Brian Attwell | 71d47d1 | 2014-05-29 13:45:56 -0700 | [diff] [blame] | 49 | </LinearLayout> |
Chiao Cheng | 64df8b2 | 2012-11-07 18:20:17 -0800 | [diff] [blame] | 50 | |
| 51 | </view> |