1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2020 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" 19 android:layout_width="wrap_content" 20 android:layout_height="wrap_content" 21 android:background="@drawable/bubble_manage_menu_bg" 22 android:elevation="@dimen/bubble_manage_menu_elevation" 23 android:orientation="vertical"> 24 25 <LinearLayout 26 android:id="@+id/bubble_manage_menu_dismiss_container" 27 android:background="@drawable/bubble_manage_menu_row" 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content" 30 android:minHeight="@dimen/bubble_menu_item_height" 31 android:gravity="center_vertical" 32 android:paddingStart="@dimen/bubble_menu_padding" 33 android:paddingEnd="@dimen/bubble_menu_padding" 34 android:orientation="horizontal"> 35 36 <ImageView 37 android:layout_width="@dimen/bubble_menu_icon_size" 38 android:layout_height="@dimen/bubble_menu_icon_size" 39 android:src="@drawable/ic_remove_no_shadow" 40 android:tint="@color/bubbles_icon_tint"/> 41 42 <TextView 43 android:id="@+id/manage_dismiss" 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content" 46 android:layout_marginStart="16dp" 47 android:textColor="@androidprv:color/materialColorOnSurface" 48 android:textAppearance="@*android:style/TextAppearance.DeviceDefault" 49 android:text="@string/bubble_dismiss_text" /> 50 51 </LinearLayout> 52 53 <LinearLayout 54 android:id="@+id/bubble_manage_menu_dont_bubble_container" 55 android:background="@drawable/bubble_manage_menu_row" 56 android:layout_width="match_parent" 57 android:layout_height="wrap_content" 58 android:minHeight="@dimen/bubble_menu_item_height" 59 android:gravity="center_vertical" 60 android:paddingStart="@dimen/bubble_menu_padding" 61 android:paddingEnd="@dimen/bubble_menu_padding" 62 android:orientation="horizontal"> 63 64 <ImageView 65 android:layout_width="@dimen/bubble_menu_icon_size" 66 android:layout_height="@dimen/bubble_menu_icon_size" 67 android:src="@drawable/bubble_ic_stop_bubble" 68 android:tint="@color/bubbles_icon_tint"/> 69 70 <TextView 71 android:id="@+id/manage_dont_bubble" 72 android:layout_width="wrap_content" 73 android:layout_height="wrap_content" 74 android:layout_marginStart="16dp" 75 android:textColor="@androidprv:color/materialColorOnSurface" 76 android:textAppearance="@*android:style/TextAppearance.DeviceDefault" 77 android:text="@string/bubbles_dont_bubble_conversation" /> 78 79 </LinearLayout> 80 81 <LinearLayout 82 android:id="@+id/bubble_manage_menu_settings_container" 83 android:background="@drawable/bubble_manage_menu_row" 84 android:layout_width="match_parent" 85 android:layout_height="wrap_content" 86 android:minHeight="@dimen/bubble_menu_item_height" 87 android:gravity="center_vertical" 88 android:paddingStart="@dimen/bubble_menu_padding" 89 android:paddingEnd="@dimen/bubble_menu_padding" 90 android:orientation="horizontal"> 91 92 <ImageView 93 android:id="@+id/bubble_manage_menu_settings_icon" 94 android:layout_width="@dimen/bubble_menu_icon_size" 95 android:layout_height="@dimen/bubble_menu_icon_size" 96 android:src="@drawable/ic_remove_no_shadow"/> 97 98 <TextView 99 android:id="@+id/bubble_manage_menu_settings_name" 100 android:layout_width="wrap_content" 101 android:layout_height="wrap_content" 102 android:layout_marginStart="16dp" 103 android:textColor="@androidprv:color/materialColorOnSurface" 104 android:textAppearance="@*android:style/TextAppearance.DeviceDefault" /> 105 106 </LinearLayout> 107 108 <!-- Menu option to move a bubble to fullscreen; only visible if bubble anything is enabled. --> 109 <LinearLayout 110 android:id="@+id/bubble_manage_menu_fullscreen_container" 111 android:background="@drawable/bubble_manage_menu_row" 112 android:layout_width="match_parent" 113 android:layout_height="wrap_content" 114 android:visibility="gone" 115 android:minHeight="@dimen/bubble_menu_item_height" 116 android:gravity="center_vertical" 117 android:paddingStart="@dimen/bubble_menu_padding" 118 android:paddingEnd="@dimen/bubble_menu_padding" 119 android:orientation="horizontal"> 120 121 <ImageView 122 android:id="@+id/bubble_manage_menu_fullscreen_icon" 123 android:layout_width="@dimen/bubble_menu_icon_size" 124 android:layout_height="@dimen/bubble_menu_icon_size" 125 android:src="@drawable/desktop_mode_ic_handle_menu_fullscreen" 126 android:tint="@color/bubbles_icon_tint"/> 127 128 <TextView 129 android:id="@+id/bubble_manage_menu_fullscreen_title" 130 android:layout_width="wrap_content" 131 android:layout_height="wrap_content" 132 android:layout_marginStart="16dp" 133 android:text="@string/bubble_fullscreen_text" 134 android:textColor="@androidprv:color/materialColorOnSurface" 135 android:textAppearance="@*android:style/TextAppearance.DeviceDefault" /> 136 137 </LinearLayout> 138 139</LinearLayout>