| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright 2018 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. |
| --> |
| |
| <FrameLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginBottom="@dimen/suggestions_top_bottom_margin" |
| android:layout_marginTop="@dimen/suggestions_top_bottom_margin" |
| android:background="@android:color/transparent"> |
| <androidx.cardview.widget.CardView |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:foreground="?android:attr/selectableItemBackground" |
| app:cardCornerRadius="@dimen/suggestions_corner_radius"> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="vertical"> |
| <androidx.constraintlayout.widget.ConstraintLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:background="?attr/suggestionsPrimaryColor" |
| android:paddingBottom="@dimen/suggestions_text_padding_bottom" |
| android:paddingEnd="@dimen/suggestions_padding_end" |
| android:paddingStart="@dimen/suggestions_padding_start" |
| android:paddingTop="@dimen/suggestions_text_padding_top"> |
| <TextView |
| android:id="@android:id/title" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:ellipsize="end" |
| android:maxLines="1" |
| android:textAppearance="?android:attr/textAppearanceLarge" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintTop_toTopOf="parent"/> |
| <TextView |
| android:id="@android:id/summary" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="@dimen/suggestions_subtext_margin_top" |
| android:ellipsize="end" |
| android:maxLines="1" |
| android:textAppearance="?android:attr/textAppearanceMedium" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintTop_toBottomOf="@android:id/title"/> |
| <ImageView |
| android:id="@android:id/icon" |
| android:layout_width="@dimen/icon_size" |
| android:layout_height="@dimen/icon_size" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintEnd_toEndOf="parent" |
| app:layout_constraintTop_toTopOf="parent"/> |
| </androidx.constraintlayout.widget.ConstraintLayout> |
| <FrameLayout |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/suggestions_action_bar_height" |
| android:background="?attr/suggestionsSecondaryColor" |
| android:paddingEnd="@dimen/suggestions_padding_end" |
| android:paddingStart="@dimen/suggestions_padding_start"> |
| <Button |
| android:id="@+id/dismiss_button" |
| style="?android:attr/borderlessButtonStyle" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_vertical" |
| android:text="@string/suggestion_dismiss_button" |
| android:textColor="?android:attr/textColorPrimary"/> |
| </FrameLayout> |
| </LinearLayout> |
| </androidx.cardview.widget.CardView> |
| </FrameLayout> |