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 17<FrameLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:id="@+id/half_shelf_dialog" 20 android:orientation="vertical" 21 android:layout_width="wrap_content" 22 android:layout_height="wrap_content" 23 android:layout_gravity="center_horizontal|bottom" 24 android:paddingStart="4dp" 25 android:paddingEnd="4dp" 26> 27 28 <LinearLayout 29 android:id="@+id/half_shelf" 30 android:layout_width="@dimen/qs_panel_width" 31 android:layout_height="wrap_content" 32 android:orientation="vertical" 33 android:gravity="bottom" 34 android:layout_gravity="center_horizontal|bottom" 35 android:background="@drawable/rounded_bg_full" > 36 37 <com.android.systemui.statusbar.notification.row.ChannelEditorListView 38 android:id="@+id/half_shelf_container" 39 android:layout_width="match_parent" 40 android:layout_height="wrap_content" 41 android:gravity="bottom" 42 android:orientation="vertical" > 43 44 <com.android.systemui.statusbar.notification.row.AppControlView 45 android:id="@+id/app_control" 46 android:layout_width="match_parent" 47 android:layout_height="wrap_content" 48 android:padding="8dp" 49 android:orientation="horizontal" 50 android:clickable="true" 51 android:foreground="?android:attr/selectableItemBackground" > 52 53 <ImageView 54 android:id="@+id/icon" 55 android:layout_height="48dp" 56 android:layout_width="48dp" 57 android:padding="8dp" /> 58 59 <TextView 60 android:id="@+id/app_name" 61 android:layout_height="wrap_content" 62 android:layout_width="0dp" 63 android:layout_weight="1" 64 android:layout_gravity="center" 65 android:padding="8dp" 66 android:gravity="center_vertical|start" 67 android:textSize="15sp" 68 android:ellipsize="end" 69 android:maxLines="1" 70 style="@style/TextAppearance.NotificationInfo.Title" /> 71 72 <Switch 73 android:id="@+id/toggle" 74 android:layout_height="48dp" 75 android:layout_width="wrap_content" 76 android:layout_gravity="center_vertical" 77 android:padding="8dp" /> 78 </com.android.systemui.statusbar.notification.row.AppControlView> 79 <!-- divider view --> 80 <View 81 android:layout_width="match_parent" 82 android:layout_height="1dp" 83 android:background="@color/notification_channel_dialog_separator" 84 /> 85 86 <!-- ChannelRows get added dynamically --> 87 88 </com.android.systemui.statusbar.notification.row.ChannelEditorListView> 89 <!-- divider view --> 90 <View 91 android:layout_width="match_parent" 92 android:layout_height="1dp" 93 android:background="@color/notification_channel_dialog_separator" 94 /> 95 <RelativeLayout 96 android:id="@+id/bottom_actions" 97 android:layout_width="match_parent" 98 android:layout_height="wrap_content" 99 android:paddingTop="@dimen/notification_guts_button_spacing" 100 android:paddingStart="20dp" 101 android:paddingEnd="20dp" > 102 <TextView 103 android:id="@+id/see_more_button" 104 android:text="@string/see_more_title" 105 android:layout_width="wrap_content" 106 android:layout_height="wrap_content" 107 android:layout_alignParentStart="true" 108 android:layout_centerVertical="true" 109 android:gravity="start|center_vertical" 110 android:minWidth="@dimen/notification_importance_toggle_size" 111 android:minHeight="@dimen/notification_importance_toggle_size" 112 android:maxWidth="200dp" 113 style="@style/TextAppearance.NotificationInfo.Button"/> 114 <TextView 115 android:id="@+id/done_button" 116 android:text="@string/inline_ok_button" 117 android:layout_width="wrap_content" 118 android:layout_height="wrap_content" 119 android:layout_centerVertical="true" 120 android:gravity="end|center_vertical" 121 android:maxWidth="125dp" 122 android:minWidth="@dimen/notification_importance_toggle_size" 123 android:minHeight="@dimen/notification_importance_toggle_size" 124 android:layout_alignParentEnd="true" 125 style="@style/TextAppearance.NotificationInfo.Button"/> 126 </RelativeLayout> 127 </LinearLayout> 128</FrameLayout> 129