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:paddingTop="5dp" 45 android:layout_toEndOf="@+id/icon" 46 android:layout_toStartOf="@+id/third_icon" 47 android:textColor="@color/quickcontact_entry_header_text_color" 48 android:textAlignment="viewStart" 49 android:layout_marginBottom="@dimen/expanding_entry_card_header_margin_bottom" /> 50 51 <TextView 52 android:id="@+id/sub_header" 53 android:layout_width="wrap_content" 54 android:layout_height="wrap_content" 55 android:layout_below="@+id/header" 56 android:layout_toEndOf="@+id/icon_sub_header" 57 android:layout_toStartOf="@+id/third_icon" 58 android:textAlignment="viewStart" 59 android:textColor="@color/quickcontact_entry_sub_header_text_color" /> 60 61 <ImageView 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:id="@+id/icon_sub_header" 65 android:layout_below="@+id/header" 66 android:layout_toEndOf="@+id/icon" 67 android:layout_marginEnd="@dimen/expanding_entry_card_item_sub_header_icon_margin_right" 68 android:layout_marginBottom="@dimen/expanding_entry_card_item_sub_header_icon_margin_bottom" /> 69 70 <TextView 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 android:id="@+id/text" 74 android:layout_below="@+id/sub_header" 75 android:layout_toEndOf="@+id/icon_text" 76 android:layout_toStartOf="@+id/third_icon" 77 android:textAlignment="viewStart" 78 android:textColor="@color/quickcontact_entry_sub_header_text_color" /> 79 80 <ImageView 81 android:layout_width="wrap_content" 82 android:layout_height="wrap_content" 83 android:id="@+id/icon_text" 84 android:layout_toEndOf="@+id/icon" 85 android:layout_below="@+id/sub_header" 86 android:layout_marginTop="@dimen/expanding_entry_card_item_text_icon_margin_top" 87 android:layout_marginEnd="@dimen/expanding_entry_card_item_text_icon_margin_right" /> 88 89 <ImageView 90 android:id="@+id/third_icon" 91 android:layout_width="@dimen/default_clickable_icon_size" 92 android:layout_height="@dimen/default_clickable_icon_size" 93 android:layout_alignParentTop="true" 94 android:layout_toStartOf="@+id/icon_alternate" 95 android:layout_alignWithParentIfMissing="true" 96 android:visibility="gone" 97 android:background="?android:attr/selectableItemBackgroundBorderless" 98 android:paddingTop="@dimen/expanding_entry_card_item_icon_margin_top" 99 android:paddingBottom="@dimen/expanding_entry_card_item_icon_margin_bottom" 100 android:paddingLeft="@dimen/expanding_entry_card_item_icon_margin_left" 101 android:paddingRight="@dimen/expanding_entry_card_item_icon_margin_right"/> 102 103 <ImageView 104 android:id="@+id/icon_alternate" 105 android:layout_width="@dimen/default_clickable_icon_size" 106 android:layout_height="@dimen/default_clickable_icon_size" 107 android:layout_alignParentEnd="true" 108 android:layout_alignParentTop="true" 109 android:visibility="gone" 110 android:background="?android:attr/selectableItemBackgroundBorderless" 111 android:paddingTop="@dimen/expanding_entry_card_item_icon_margin_top" 112 android:paddingBottom="@dimen/expanding_entry_card_item_icon_margin_bottom" 113 android:paddingLeft="@dimen/expanding_entry_card_item_icon_margin_left" 114 android:paddingRight="@dimen/expanding_entry_card_item_icon_margin_right"/> 115</view> 116