Tingting Wang | 18906c0 | 2015-10-16 14:53:10 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2015 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 | --> |
Aravind Sreekumar | 7121285 | 2018-04-06 15:47:45 -0700 | [diff] [blame] | 16 | <androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" |
Tingting Wang | 18906c0 | 2015-10-16 14:53:10 -0700 | [diff] [blame] | 17 | xmlns:card_view="http://schemas.android.com/apk/res-auto" |
| 18 | style="@style/ExpandingEntryCardStyle" |
Wenyi Wang | 5368489 | 2015-10-23 11:11:16 -0700 | [diff] [blame] | 19 | android:layout_height="@dimen/quickcontact_collapse_view_height" |
Tingting Wang | 18906c0 | 2015-10-16 14:53:10 -0700 | [diff] [blame] | 20 | android:layout_width="match_parent" |
| 21 | android:visibility="gone" |
| 22 | android:id="@+id/collapsed_suggestion_card"> |
| 23 | |
| 24 | <LinearLayout |
| 25 | android:layout_height="wrap_content" |
| 26 | android:layout_width="match_parent" |
| 27 | android:orientation="horizontal" |
| 28 | android:clickable="true" |
| 29 | android:id="@+id/collapsed_suggestion_header"> |
| 30 | |
| 31 | <ImageView |
John Shao | bd9ef3c | 2016-12-15 12:42:03 -0800 | [diff] [blame] | 32 | android:src="@drawable/quantum_ic_assistant_vd_theme_24" |
John Shao | 1e24ae8 | 2016-12-06 18:55:24 -0800 | [diff] [blame] | 33 | android:tint="@color/editor_icon_color" |
Wenyi Wang | 5368489 | 2015-10-23 11:11:16 -0700 | [diff] [blame] | 34 | android:layout_width="@dimen/quickcontact_collapse_icon_size" |
| 35 | android:layout_height="@dimen/quickcontact_collapse_icon_size" |
| 36 | android:layout_margin="@dimen/quickcontact_collapse_image_padding" |
Tingting Wang | 18906c0 | 2015-10-16 14:53:10 -0700 | [diff] [blame] | 37 | android:layout_gravity="center_vertical"/> |
| 38 | |
| 39 | <TextView |
| 40 | android:id="@+id/collapsed_suggestion_card_title" |
| 41 | android:textSize="@dimen/expanding_entry_card_title_text_size" |
Tingting Wang | 4f5770c | 2015-11-02 12:16:32 -0800 | [diff] [blame] | 42 | android:layout_marginLeft="8dp" |
Tingting Wang | 18906c0 | 2015-10-16 14:53:10 -0700 | [diff] [blame] | 43 | android:layout_width="wrap_content" |
| 44 | android:layout_height="wrap_content" |
| 45 | android:layout_weight="1" |
| 46 | android:textColor="@color/quickcontact_entry_header_text_color" |
| 47 | android:singleLine="true" |
| 48 | android:ellipsize="end" |
Tingting Wang | 52a935d | 2015-11-06 12:37:06 -0800 | [diff] [blame] | 49 | android:textAlignment="viewStart" |
Wenyi Wang | 5368489 | 2015-10-23 11:11:16 -0700 | [diff] [blame] | 50 | android:paddingTop="@dimen/quickcontact_collapse_text_padding"/> |
Tingting Wang | 18906c0 | 2015-10-16 14:53:10 -0700 | [diff] [blame] | 51 | |
| 52 | <ImageView |
John Shao | bd9ef3c | 2016-12-15 12:42:03 -0800 | [diff] [blame] | 53 | android:src="@drawable/quantum_ic_expand_more_vd_theme_24" |
Tingting Wang | 18906c0 | 2015-10-16 14:53:10 -0700 | [diff] [blame] | 54 | android:layout_width="wrap_content" |
| 55 | android:layout_height="wrap_content" |
| 56 | android:layout_gravity="center_vertical|end" |
| 57 | android:layout_alignParentEnd="true" |
| 58 | android:paddingStart="@dimen/editor_round_button_padding_left" |
| 59 | android:paddingEnd="@dimen/editor_round_button_padding_right" |
| 60 | android:paddingTop="@dimen/editor_round_button_padding_top" |
| 61 | android:paddingBottom="@dimen/editor_round_button_padding_bottom"/> |
| 62 | </LinearLayout>> |
| 63 | |
Aravind Sreekumar | 7121285 | 2018-04-06 15:47:45 -0700 | [diff] [blame] | 64 | </androidx.cardview.widget.CardView> |