Mill Chen | 3f3823e | 2018-12-10 21:33:58 +0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2018 The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
| 18 | <LinearLayout |
| 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | android:id="@+id/dismissal_view" |
| 21 | android:layout_width="match_parent" |
| 22 | android:layout_height="match_parent" |
Fan Zhang | b64d16d | 2019-04-10 12:25:10 -0700 | [diff] [blame] | 23 | android:background="@color/contextual_card_dismissal_background" |
Yi-Ling Chuang | 734d826 | 2019-04-01 22:53:10 +0800 | [diff] [blame] | 24 | android:orientation="vertical" |
| 25 | android:visibility="gone"> |
Mill Chen | 3f3823e | 2018-12-10 21:33:58 +0800 | [diff] [blame] | 26 | |
| 27 | <TextView |
| 28 | android:layout_width="match_parent" |
| 29 | android:layout_height="wrap_content" |
Fan Zhang | b64d16d | 2019-04-10 12:25:10 -0700 | [diff] [blame] | 30 | android:layout_marginStart="@dimen/contextual_card_dismissal_side_margin" |
| 31 | android:layout_marginTop="@dimen/contextual_card_dismissal_margin_top" |
Mill Chen | 3f3823e | 2018-12-10 21:33:58 +0800 | [diff] [blame] | 32 | android:text="@string/contextual_card_dismiss_confirm_message" |
| 33 | android:textAppearance="@style/TextAppearance.ContextualCardDismissalText"/> |
| 34 | |
| 35 | <LinearLayout |
| 36 | android:layout_width="match_parent" |
| 37 | android:layout_height="match_parent" |
| 38 | android:gravity="bottom|end"> |
| 39 | |
| 40 | <Button |
Yi-Ling Chuang | 76b7068 | 2019-03-05 17:16:20 +0800 | [diff] [blame] | 41 | android:id="@+id/keep" |
Mill Chen | 3f3823e | 2018-12-10 21:33:58 +0800 | [diff] [blame] | 42 | style="@style/ContextualCardDismissalButton" |
| 43 | android:layout_width="wrap_content" |
| 44 | android:layout_height="wrap_content" |
Yi-Ling Chuang | 76b7068 | 2019-03-05 17:16:20 +0800 | [diff] [blame] | 45 | android:text="@string/contextual_card_dismiss_keep"/> |
Mill Chen | 3f3823e | 2018-12-10 21:33:58 +0800 | [diff] [blame] | 46 | |
Yi-Ling Chuang | 84acc56 | 2019-01-11 18:28:43 +0800 | [diff] [blame] | 47 | <Button |
Yi-Ling Chuang | 76b7068 | 2019-03-05 17:16:20 +0800 | [diff] [blame] | 48 | android:id="@+id/remove" |
Yi-Ling Chuang | 84acc56 | 2019-01-11 18:28:43 +0800 | [diff] [blame] | 49 | style="@style/ContextualCardDismissalButton" |
| 50 | android:layout_width="wrap_content" |
| 51 | android:layout_height="wrap_content" |
Fan Zhang | b64d16d | 2019-04-10 12:25:10 -0700 | [diff] [blame] | 52 | android:layout_marginStart="@dimen/contextual_card_dismissal_button_margin_start" |
| 53 | android:layout_marginEnd="@dimen/contextual_card_dismissal_button_margin_end" |
Yi-Ling Chuang | 76b7068 | 2019-03-05 17:16:20 +0800 | [diff] [blame] | 54 | android:text="@string/contextual_card_dismiss_remove"/> |
Yi-Ling Chuang | 84acc56 | 2019-01-11 18:28:43 +0800 | [diff] [blame] | 55 | |
Mill Chen | 3f3823e | 2018-12-10 21:33:58 +0800 | [diff] [blame] | 56 | </LinearLayout> |
| 57 | </LinearLayout> |