1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2019 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 18<LinearLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 android:id="@+id/app_entities_header" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:gravity="center" 24 android:orientation="horizontal"> 25 26 <LinearLayout 27 android:id="@+id/block" 28 android:layout_width="0dp" 29 android:layout_weight="33.33" 30 android:layout_height="wrap_content" 31 android:layout_marginBottom="16dp" 32 android:layout_marginTop="16dp" 33 android:orientation="vertical" 34 android:gravity="center"> 35 36 <ImageButton 37 android:id="@+id/block_icon" 38 android:layout_width="@dimen/notification_importance_toggle_size" 39 android:layout_height="@dimen/notification_importance_toggle_size" 40 android:background="?android:attr/selectableItemBackgroundBorderless" 41 android:src="@drawable/ic_notification_block" 42 android:contentDescription="@string/notification_block_title" /> 43 <TextView 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content" 46 android:text="@string/notification_block_title" 47 android:layout_marginTop="@dimen/notification_importance_toggle_marginTop" 48 android:layout_marginBottom="@dimen/notification_importance_toggle_marginBottom" 49 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Subhead" /> 50 </LinearLayout> 51 52 <LinearLayout 53 android:id="@+id/silence" 54 android:layout_width="0dp" 55 android:layout_weight="33.33" 56 android:layout_height="wrap_content" 57 android:layout_marginBottom="16dp" 58 android:layout_marginTop="16dp" 59 android:orientation="vertical" 60 android:gravity="center"> 61 62 <ImageButton 63 android:id="@+id/silence_icon" 64 android:layout_width="@dimen/notification_importance_toggle_size" 65 android:layout_height="@dimen/notification_importance_toggle_size" 66 android:background="?android:attr/selectableItemBackgroundBorderless" 67 android:src="@drawable/ic_notification_silence" 68 android:contentDescription="@string/notification_silence_title" /> 69 <TextView 70 android:layout_width="wrap_content" 71 android:layout_height="wrap_content" 72 android:text="@string/notification_silence_title" 73 android:layout_marginTop="@dimen/notification_importance_toggle_marginTop" 74 android:layout_marginBottom="@dimen/notification_importance_toggle_marginBottom" 75 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Subhead" /> 76 </LinearLayout> 77 78 <LinearLayout 79 android:id="@+id/alert" 80 android:layout_width="0dp" 81 android:layout_weight="33.33" 82 android:layout_height="wrap_content" 83 android:layout_marginBottom="16dp" 84 android:layout_marginTop="16dp" 85 android:orientation="vertical" 86 android:gravity="center"> 87 88 <ImageButton 89 android:id="@+id/alert_icon" 90 android:layout_width="@dimen/notification_importance_toggle_size" 91 android:layout_height="@dimen/notification_importance_toggle_size" 92 android:background="?android:attr/selectableItemBackgroundBorderless" 93 android:src="@drawable/ic_notification_alert" 94 android:contentDescription="@string/notification_alert_title" /> 95 <TextView 96 android:layout_width="wrap_content" 97 android:layout_height="wrap_content" 98 android:text="@string/notification_alert_title" 99 android:layout_marginTop="@dimen/notification_importance_toggle_marginTop" 100 android:layout_marginBottom="@dimen/notification_importance_toggle_marginBottom" 101 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Subhead" /> 102 </LinearLayout> 103 104</LinearLayout>