1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2014 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 <view 18 class="com.android.contacts.quickcontact.ExpandingEntryCardView$EntryView" 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 style="@style/SelectableItem" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:paddingStart="@dimen/expanding_entry_card_item_padding_start" 24 android:paddingEnd="@dimen/expanding_entry_card_item_padding_end" 25 android:paddingTop="@dimen/expanding_entry_card_item_padding_top" 26 android:paddingBottom="@dimen/expanding_entry_card_item_padding_bottom"> 27 28 <ImageView 29 android:id="@+id/icon" 30 android:layout_width="@dimen/expanding_entry_card_item_icon_height" 31 android:layout_height="@dimen/expanding_entry_card_item_icon_width" 32 android:layout_alignParentStart="true" 33 android:layout_alignParentTop="true" 34 android:layout_marginEnd="@dimen/expanding_entry_card_item_image_spacing" 35 android:scaleType="fitCenter" 36 android:layout_marginTop="@dimen/expanding_entry_card_item_icon_margin_top" /> 37 38 <TextView 39 android:id="@+id/header" 40 android:textSize="@dimen/expanding_entry_card_title_text_size" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:layout_alignParentTop="true" 44 android:layout_toEndOf="@+id/icon" 45 android:layout_toStartOf="@+id/icon_alternate" 46 android:textColor="@color/quickcontact_entry_header_text_color" 47 android:textAlignment="viewStart" 48 android:layout_marginBottom="@dimen/expanding_entry_card_header_margin_bottom" /> 49 50 <TextView 51 android:id="@+id/sub_header" 52 android:layout_width="wrap_content" 53 android:layout_height="wrap_content" 54 android:layout_below="@+id/header" 55 android:layout_toEndOf="@+id/icon_sub_header" 56 android:layout_toStartOf="@+id/icon_alternate" 57 android:textAlignment="viewStart" 58 android:textColor="@color/quickcontact_entry_sub_header_text_color" /> 59 60 <ImageView 61 android:layout_width="wrap_content" 62 android:layout_height="wrap_content" 63 android:id="@+id/icon_sub_header" 64 android:layout_below="@+id/header" 65 android:layout_toEndOf="@+id/icon" 66 android:layout_marginEnd="@dimen/expanding_entry_card_item_sub_header_icon_margin_right" 67 android:layout_marginBottom="@dimen/expanding_entry_card_item_sub_header_icon_margin_bottom" /> 68 69 <TextView 70 android:layout_width="wrap_content" 71 android:layout_height="wrap_content" 72 android:id="@+id/text" 73 android:layout_below="@+id/sub_header" 74 android:layout_toEndOf="@+id/icon_text" 75 android:layout_toStartOf="@+id/icon_alternate" 76 android:textAlignment="viewStart" 77 android:textColor="@color/quickcontact_entry_sub_header_text_color" /> 78 79 <ImageView 80 android:layout_width="wrap_content" 81 android:layout_height="wrap_content" 82 android:id="@+id/icon_text" 83 android:layout_toEndOf="@+id/icon" 84 android:layout_below="@+id/sub_header" 85 android:layout_marginTop="@dimen/expanding_entry_card_item_text_icon_margin_top" 86 android:layout_marginEnd="@dimen/expanding_entry_card_item_text_icon_margin_right" /> 87 88 <ImageView 89 android:id="@+id/icon_alternate" 90 android:layout_width="wrap_content" 91 android:layout_height="wrap_content" 92 android:layout_alignParentTop="true" 93 android:layout_toStartOf="@+id/third_icon" 94 android:layout_alignWithParentIfMissing="true" 95 android:visibility="gone" 96 android:background="?android:attr/selectableItemBackgroundBorderless" 97 android:paddingTop="@dimen/expanding_entry_card_item_icon_margin_top" 98 android:paddingBottom="@dimen/expanding_entry_card_item_alternate_icon_margin_bottom" 99 android:layout_marginStart="@dimen/expanding_entry_card_item_alternate_icon_start_margin" /> 100 101 <ImageView 102 android:id="@+id/third_icon" 103 android:layout_width="wrap_content" 104 android:layout_height="wrap_content" 105 android:layout_alignParentEnd="true" 106 android:layout_alignParentTop="true" 107 android:visibility="gone" 108 android:background="?android:attr/selectableItemBackgroundBorderless" 109 android:paddingTop="@dimen/expanding_entry_card_item_icon_margin_top" 110 android:paddingBottom="@dimen/expanding_entry_card_item_alternate_icon_margin_bottom" 111 android:layout_marginStart="@dimen/expanding_entry_card_item_alternate_icon_start_margin" /> 112 </view> 113