| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2014 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <view |
| class="com.android.contacts.quickcontact.ExpandingEntryCardView$EntryView" |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| style="@style/SelectableItem" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:paddingStart="@dimen/expanding_entry_card_item_padding_start" |
| android:paddingEnd="@dimen/expanding_entry_card_item_padding_end" |
| android:paddingTop="@dimen/expanding_entry_card_item_padding_top" |
| android:paddingBottom="@dimen/expanding_entry_card_item_padding_bottom"> |
| |
| <ImageView |
| android:id="@+id/icon" |
| android:layout_width="@dimen/expanding_entry_card_item_icon_height" |
| android:layout_height="@dimen/expanding_entry_card_item_icon_width" |
| android:layout_alignParentStart="true" |
| android:layout_alignParentTop="true" |
| android:layout_marginEnd="@dimen/expanding_entry_card_item_image_spacing" |
| android:scaleType="fitCenter" |
| android:layout_marginTop="@dimen/expanding_entry_card_item_icon_margin_top" /> |
| |
| <TextView |
| android:id="@+id/header" |
| android:textSize="@dimen/expanding_entry_card_title_text_size" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentTop="true" |
| android:paddingTop="5dp" |
| android:layout_toEndOf="@+id/icon" |
| android:layout_toStartOf="@+id/third_icon" |
| android:textColor="@color/quickcontact_entry_header_text_color" |
| android:textAlignment="viewStart" |
| android:layout_marginBottom="@dimen/expanding_entry_card_header_margin_bottom" /> |
| |
| <TextView |
| android:id="@+id/sub_header" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_below="@+id/header" |
| android:layout_toEndOf="@+id/icon_sub_header" |
| android:layout_toStartOf="@+id/third_icon" |
| android:textAlignment="viewStart" |
| android:textColor="@color/quickcontact_entry_sub_header_text_color" /> |
| |
| <ImageView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:id="@+id/icon_sub_header" |
| android:layout_below="@+id/header" |
| android:layout_toEndOf="@+id/icon" |
| android:layout_marginEnd="@dimen/expanding_entry_card_item_sub_header_icon_margin_right" |
| android:layout_marginBottom="@dimen/expanding_entry_card_item_sub_header_icon_margin_bottom" /> |
| |
| <TextView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:id="@+id/text" |
| android:layout_below="@+id/sub_header" |
| android:layout_toEndOf="@+id/icon_text" |
| android:layout_toStartOf="@+id/third_icon" |
| android:textAlignment="viewStart" |
| android:textColor="@color/quickcontact_entry_sub_header_text_color" /> |
| |
| <ImageView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:id="@+id/icon_text" |
| android:layout_toEndOf="@+id/icon" |
| android:layout_below="@+id/sub_header" |
| android:layout_marginTop="@dimen/expanding_entry_card_item_text_icon_margin_top" |
| android:layout_marginEnd="@dimen/expanding_entry_card_item_text_icon_margin_right" /> |
| |
| <ImageView |
| android:id="@+id/third_icon" |
| android:layout_width="@dimen/default_clickable_icon_size" |
| android:layout_height="@dimen/default_clickable_icon_size" |
| android:layout_alignParentTop="true" |
| android:layout_toStartOf="@+id/icon_alternate" |
| android:layout_alignWithParentIfMissing="true" |
| android:visibility="gone" |
| android:background="?android:attr/selectableItemBackgroundBorderless" |
| android:paddingTop="@dimen/expanding_entry_card_item_icon_margin_top" |
| android:paddingBottom="@dimen/expanding_entry_card_item_icon_margin_bottom" |
| android:paddingLeft="@dimen/expanding_entry_card_item_icon_margin_left" |
| android:paddingRight="@dimen/expanding_entry_card_item_icon_margin_right"/> |
| |
| <ImageView |
| android:id="@+id/icon_alternate" |
| android:layout_width="@dimen/default_clickable_icon_size" |
| android:layout_height="@dimen/default_clickable_icon_size" |
| android:layout_alignParentEnd="true" |
| android:layout_alignParentTop="true" |
| android:visibility="gone" |
| android:background="?android:attr/selectableItemBackgroundBorderless" |
| android:paddingTop="@dimen/expanding_entry_card_item_icon_margin_top" |
| android:paddingBottom="@dimen/expanding_entry_card_item_icon_margin_bottom" |
| android:paddingLeft="@dimen/expanding_entry_card_item_icon_margin_left" |
| android:paddingRight="@dimen/expanding_entry_card_item_icon_margin_right"/> |
| </view> |