blob: b1e83ce0c7f439658fc06c97ccde3da72f6ca553 [file] [log] [blame]
Chiao Cheng64df8b22012-11-07 18:20:17 -08001<?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 Cheng396911f2012-12-05 12:06:58 -080018 class="com.android.contacts.common.list.ContactTileFrequentView"
Chiao Cheng64df8b22012-11-07 18:20:17 -080019 android:focusable="true"
Brian Attwell71d47d12014-05-29 13:45:56 -070020 android:background="?android:attr/selectableItemBackground">
Chiao Cheng64df8b22012-11-07 18:20:17 -080021
Brian Attwell71d47d12014-05-29 13:45:56 -070022 <LinearLayout
Chiao Cheng64df8b22012-11-07 18:20:17 -080023 android:layout_width="match_parent"
Brian Attwell71d47d12014-05-29 13:45:56 -070024 android:layout_height="wrap_content"
25 android:orientation="horizontal"
26 android:gravity="center_vertical"
Brian Attwell71d47d12014-05-29 13:45:56 -070027 android:paddingTop="?list_item_padding_top"
28 android:paddingBottom="?list_item_padding_bottom">
Chiao Cheng64df8b22012-11-07 18:20:17 -080029
Brian Attwell71d47d12014-05-29 13:45:56 -070030 <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 Cheng64df8b22012-11-07 18:20:17 -080034 android:scaleType="centerCrop"
Brian Attwell71d47d12014-05-29 13:45:56 -070035 android:layout_marginEnd="?list_item_gap_between_image_and_text"/>
Chiao Cheng64df8b22012-11-07 18:20:17 -080036
Brian Attwell71d47d12014-05-29 13:45:56 -070037 <TextView
38 android:id="@+id/contact_tile_name"
Chiao Cheng64df8b22012-11-07 18:20:17 -080039 android:layout_width="match_parent"
Brian Attwell71d47d12014-05-29 13:45:56 -070040 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 Cheng64df8b22012-11-07 18:20:17 -080048
Brian Attwell71d47d12014-05-29 13:45:56 -070049 </LinearLayout>
Chiao Cheng64df8b22012-11-07 18:20:17 -080050
51</view>