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 17 <!-- Layout parameters are set programmatically. --> 18 <view 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 android:id="@+id/contact_tile_frequent_phone" 21 class="com.android.contacts.list.ContactTileDarkFrequentView" 22 android:focusable="true" 23 android:background="?android:attr/selectableItemBackground" 24 android:nextFocusLeft="@+id/contact_tile_quick"> 25 26 <RelativeLayout 27 android:layout_width="match_parent" 28 android:layout_height="match_parent" > 29 30 <view 31 android:id="@+id/image_container" 32 class="com.android.contacts.list.ContactTileImageContainer" 33 android:layout_width="64dip" 34 android:layout_height="64dip" 35 android:layout_alignParentLeft="true"> 36 <QuickContactBadge 37 android:id="@id/contact_tile_quick" 38 android:nextFocusRight="@id/contact_tile_frequent_phone" 39 android:layout_width="match_parent" 40 android:layout_height="match_parent" 41 android:scaleType="centerCrop" 42 android:focusable="true" /> 43 </view> 44 45 <TextView 46 android:id="@+id/contact_tile_name" 47 android:layout_width="match_parent" 48 android:layout_height="wrap_content" 49 android:layout_marginLeft="8dip" 50 android:textAppearance="?android:attr/textAppearanceMedium" 51 android:layout_marginTop="8dip" 52 android:layout_toRightOf="@id/image_container" 53 android:singleLine="true" 54 android:fadingEdge="horizontal" 55 android:fadingEdgeLength="3dip" 56 android:ellipsize="marquee" /> 57 58 <LinearLayout 59 android:orientation="horizontal" 60 android:layout_width="match_parent" 61 android:layout_height="wrap_content" 62 android:layout_below="@id/contact_tile_name" 63 android:layout_toRightOf="@id/image_container" 64 android:gravity="center_vertical"> 65 66 <TextView 67 android:id="@+id/contact_tile_phone_number" 68 android:layout_width="0dip" 69 android:layout_height="wrap_content" 70 android:layout_weight="?attr/list_item_data_width_weight" 71 android:textSize="14sp" 72 android:ellipsize="marquee" 73 android:textColor="@color/dialtacts_secondary_text_color" 74 android:layout_marginLeft="8dip" 75 android:singleLine="true" 76 android:layout_gravity="bottom" /> 77 78 <TextView 79 android:id="@+id/contact_tile_phone_type" 80 android:layout_width="0dip" 81 android:layout_height="wrap_content" 82 android:layout_weight="?attr/list_item_label_width_weight" 83 android:textSize="12sp" 84 android:ellipsize="marquee" 85 android:singleLine="true" 86 android:textAllCaps="true" 87 android:textColor="@color/dialtacts_secondary_text_color" 88 android:layout_marginLeft="8dip" 89 android:gravity="right" 90 android:layout_gravity="bottom" /> 91 92 </LinearLayout> 93 94 <View 95 android:id="@+id/contact_tile_horizontal_divider" 96 android:layout_width="match_parent" 97 android:layout_height="1px" 98 android:background="?android:attr/listDivider" 99 android:layout_below="@id/image_container" /> 100 101 </RelativeLayout> 102 103 </view> 104