blob: 0406422d1931a91546d187b794d5be469bac7658 [file] [log] [blame]
Mill Chen3f3823e2018-12-10 21:33:58 +08001<?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 Zhangb64d16d2019-04-10 12:25:10 -070023 android:background="@color/contextual_card_dismissal_background"
Yi-Ling Chuang734d8262019-04-01 22:53:10 +080024 android:orientation="vertical"
25 android:visibility="gone">
Mill Chen3f3823e2018-12-10 21:33:58 +080026
27 <TextView
28 android:layout_width="match_parent"
29 android:layout_height="wrap_content"
Fan Zhangb64d16d2019-04-10 12:25:10 -070030 android:layout_marginStart="@dimen/contextual_card_dismissal_side_margin"
31 android:layout_marginTop="@dimen/contextual_card_dismissal_margin_top"
Mill Chen3f3823e2018-12-10 21:33:58 +080032 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 Chuang76b70682019-03-05 17:16:20 +080041 android:id="@+id/keep"
Mill Chen3f3823e2018-12-10 21:33:58 +080042 style="@style/ContextualCardDismissalButton"
43 android:layout_width="wrap_content"
44 android:layout_height="wrap_content"
Yi-Ling Chuang76b70682019-03-05 17:16:20 +080045 android:text="@string/contextual_card_dismiss_keep"/>
Mill Chen3f3823e2018-12-10 21:33:58 +080046
Yi-Ling Chuang84acc562019-01-11 18:28:43 +080047 <Button
Yi-Ling Chuang76b70682019-03-05 17:16:20 +080048 android:id="@+id/remove"
Yi-Ling Chuang84acc562019-01-11 18:28:43 +080049 style="@style/ContextualCardDismissalButton"
50 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
Fan Zhangb64d16d2019-04-10 12:25:10 -070052 android:layout_marginStart="@dimen/contextual_card_dismissal_button_margin_start"
53 android:layout_marginEnd="@dimen/contextual_card_dismissal_button_margin_end"
Yi-Ling Chuang76b70682019-03-05 17:16:20 +080054 android:text="@string/contextual_card_dismiss_remove"/>
Yi-Ling Chuang84acc562019-01-11 18:28:43 +080055
Mill Chen3f3823e2018-12-10 21:33:58 +080056 </LinearLayout>
57</LinearLayout>