blob: f5cd727a6d037decbaf7eb25503c220032e510ba [file] [log] [blame]
Joshua Tsuji4accf5982019-04-22 17:36:11 -04001<!--
2 ~ Copyright (C) 2019 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 -->
16<!-- Bubble dismiss target consisting of an X icon and the text 'Dismiss'. -->
17<FrameLayout
18 xmlns:android="http://schemas.android.com/apk/res/android"
19 android:layout_width="wrap_content"
Joshua Tsujif39539d2020-04-03 18:53:06 -040020 android:layout_height="@dimen/floating_dismiss_gradient_height"
Joshua Tsuji4accf5982019-04-22 17:36:11 -040021 android:layout_gravity="bottom|center_horizontal">
22
Lyn Han634483c2019-06-28 16:52:47 -070023 <FrameLayout
24 android:id="@+id/bubble_dismiss_circle"
25 android:layout_width="@dimen/bubble_dismiss_encircle_size"
26 android:layout_height="@dimen/bubble_dismiss_encircle_size"
27 android:layout_gravity="center"
28 android:background="@drawable/bubble_dismiss_circle" />
29
Joshua Tsuji4accf5982019-04-22 17:36:11 -040030 <LinearLayout
31 android:id="@+id/bubble_dismiss_icon_container"
32 android:layout_width="wrap_content"
33 android:layout_height="match_parent"
34 android:gravity="center"
35 android:paddingBottom="@dimen/bubble_dismiss_target_padding_y"
36 android:paddingTop="@dimen/bubble_dismiss_target_padding_y"
37 android:paddingLeft="@dimen/bubble_dismiss_target_padding_x"
38 android:paddingRight="@dimen/bubble_dismiss_target_padding_x"
39 android:clipChildren="false"
40 android:clipToPadding="false"
41 android:orientation="horizontal">
42
43 <ImageView
44 android:id="@+id/bubble_dismiss_close_icon"
45 android:layout_width="24dp"
46 android:layout_height="24dp"
47 android:src="@drawable/bubble_dismiss_icon" />
Joshua Tsuji4accf5982019-04-22 17:36:11 -040048 </LinearLayout>
Joshua Tsuji4accf5982019-04-22 17:36:11 -040049</FrameLayout>