blob: 245177c8461b651555395f842cf1d6af9e87ccbd [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"
20 android:layout_height="@dimen/pip_dismiss_gradient_height"
21 android:layout_gravity="bottom|center_horizontal">
22
23 <LinearLayout
24 android:id="@+id/bubble_dismiss_icon_container"
25 android:layout_width="wrap_content"
26 android:layout_height="match_parent"
27 android:gravity="center"
28 android:paddingBottom="@dimen/bubble_dismiss_target_padding_y"
29 android:paddingTop="@dimen/bubble_dismiss_target_padding_y"
30 android:paddingLeft="@dimen/bubble_dismiss_target_padding_x"
31 android:paddingRight="@dimen/bubble_dismiss_target_padding_x"
32 android:clipChildren="false"
33 android:clipToPadding="false"
34 android:orientation="horizontal">
35
36 <ImageView
37 android:id="@+id/bubble_dismiss_close_icon"
38 android:layout_width="24dp"
39 android:layout_height="24dp"
40 android:src="@drawable/bubble_dismiss_icon" />
41
42 <TextView
43 android:id="@+id/bubble_dismiss_text"
44 android:layout_width="wrap_content"
45 android:layout_height="wrap_content"
46 android:layout_marginTop="9dp"
47 android:layout_marginBottom="9dp"
48 android:layout_marginLeft="8dp"
49 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1"
50 android:textColor="@android:color/white"
51 android:shadowColor="@android:color/black"
52 android:shadowDx="-1"
53 android:shadowDy="1"
54 android:shadowRadius="0.01"
55 android:text="@string/bubble_dismiss_text" />
56
57 </LinearLayout>
58
59 <FrameLayout
60 android:id="@+id/bubble_dismiss_circle"
61 android:layout_width="@dimen/bubble_dismiss_encircle_size"
62 android:layout_height="@dimen/bubble_dismiss_encircle_size"
63 android:layout_gravity="center"
64 android:alpha="0"
65 android:background="@drawable/bubble_dismiss_circle" />
66</FrameLayout>