Joshua Tsuji | 4accf598 | 2019-04-22 17:36:11 -0400 | [diff] [blame] | 1 | <!-- |
| 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 | |
Lyn Han | 634483c | 2019-06-28 16:52:47 -0700 | [diff] [blame] | 23 | <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 Tsuji | 4accf598 | 2019-04-22 17:36:11 -0400 | [diff] [blame] | 30 | <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 Tsuji | 4accf598 | 2019-04-22 17:36:11 -0400 | [diff] [blame] | 48 | </LinearLayout> |
Joshua Tsuji | 4accf598 | 2019-04-22 17:36:11 -0400 | [diff] [blame] | 49 | </FrameLayout> |