| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2015 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. |
| --> |
| |
| <!-- |
| Layout for the suggestion card in QuickContact. |
| --> |
| <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:card_view="http://schemas.android.com/apk/res-auto" |
| style="@style/ExpandingEntryCardStyle" |
| android:layout_height="wrap_content" |
| android:layout_width="match_parent" |
| android:visibility="gone" |
| android:id="@+id/suggestion_card_view"> |
| |
| <LinearLayout |
| android:layout_height="wrap_content" |
| android:layout_width="match_parent" |
| android:orientation="vertical"> |
| |
| <LinearLayout |
| android:layout_height="wrap_content" |
| android:layout_width="match_parent" |
| android:layout_marginTop="@dimen/quickcontact_suggestion_card_layout_margin" |
| android:layout_marginBottom="@dimen/quickcontact_suggestion_card_layout_margin" |
| android:orientation="horizontal"> |
| |
| <ImageView |
| android:id="@+id/suggestion_icon" |
| android:layout_width="@dimen/quickcontact_suggestion_card_icon_height" |
| android:layout_height="@dimen/quickcontact_suggestion_card_icon_width" |
| android:layout_gravity="center_vertical" |
| android:layout_marginStart="@dimen/quickcontact_suggestion_card_image_spacing" |
| android:scaleType="fitCenter" /> |
| |
| <LinearLayout |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:orientation="vertical" |
| android:layout_gravity="center_vertical" |
| android:layout_weight="1" |
| android:layout_toEndOf="@+id/line_vertical_separator" |
| android:layout_marginStart="@dimen/expanding_entry_card_item_image_spacing" |
| android:layout_marginEnd="@dimen/expanding_entry_card_item_image_spacing"> |
| |
| <TextView |
| android:id="@+id/suggestion_for_name" |
| android:textSize="@dimen/expanding_entry_card_title_text_size" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:textColor="@color/quickcontact_entry_header_text_color" |
| android:singleLine="true" |
| android:ellipsize="end" |
| android:textAlignment="viewStart"/> |
| |
| <TextView |
| android:id="@+id/suggestion_number" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:textAlignment="viewStart" |
| android:singleLine="true" |
| android:ellipsize="end" |
| android:textColor="@color/quickcontact_entry_sub_header_text_color" /> |
| |
| <TextView |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:id="@+id/suggestion_summary" |
| android:textAlignment="viewStart" |
| android:singleLine="true" |
| android:ellipsize="end" |
| android:textColor="@color/quickcontact_entry_sub_header_text_color" /> |
| </LinearLayout> |
| |
| <View |
| android:id="@+id/line_vertical_separator" |
| android:layout_width="@dimen/divider_line_height" |
| android:layout_height="match_parent" |
| android:layout_toEndOf="@+id/expand_suggestion_button" |
| android:background="@color/divider_line_color_light"/> |
| |
| <ImageView |
| android:id="@+id/expand_suggestion_button" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_vertical|end" |
| android:layout_alignParentEnd="true" |
| android:paddingStart="@dimen/editor_round_button_padding_left" |
| android:paddingEnd="@dimen/editor_round_button_padding_right" |
| android:paddingTop="@dimen/editor_round_button_padding_top" |
| android:paddingBottom="@dimen/editor_round_button_padding_bottom"/> |
| |
| </LinearLayout> |
| |
| <View |
| android:id="@+id/title_separator" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/divider_line_height" |
| android:paddingTop="@dimen/editor_round_button_padding_top" |
| android:background="@color/divider_line_color_light"/> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:id="@+id/suggestion_list" |
| android:animateLayoutChanges="true" |
| android:orientation="vertical" /> |
| |
| <View |
| android:id="@+id/title_separator2" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/divider_line_height" |
| android:background="@color/divider_line_color_light" |
| android:visibility="gone"/> |
| |
| <Button |
| android:id="@+id/link_button" |
| style="?android:attr/buttonBarButtonStyle" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/quickcontact_suggestion_link_button" |
| android:textColor="@color/quickcontact_entry_sub_header_text_color" |
| android:paddingStart="@dimen/quickcontact_suggestion_card_image_spacing"/> |
| </LinearLayout> |
| </android.support.v7.widget.CardView> |