1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2024 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 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" 21 android:orientation="vertical" 22 android:layout_width="match_parent" 23 android:layout_height="wrap_content"> 24 25 <TextView 26 android:id="@+id/notif_ls_style_desc" 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:paddingVertical="@dimen/settingslib_illustration_padding" 30 android:paddingEnd="48dp" 31 android:paddingStart="48dp" 32 android:layout_gravity="center_horizontal" 33 android:gravity="center" 34 android:focusable="true" 35 android:textAppearance="?android:attr/textAppearanceSmall" 36 android:textColor="?android:attr/textColorSecondary"/> 37 38 <LinearLayout 39 android:layout_width="match_parent" 40 android:layout_height="wrap_content" 41 android:layout_marginBottom="16dp" 42 android:orientation="horizontal"> 43 44 <Space 45 android:layout_width="0dp" 46 android:layout_height="match_parent" 47 android:layout_weight="1"/> 48 49 <LinearLayout 50 android:id="@+id/button_compact" 51 android:layout_width="wrap_content" 52 android:layout_height="wrap_content" 53 android:orientation="vertical"> 54 55 <FrameLayout 56 android:layout_width="@dimen/contrast_button_total_size" 57 android:layout_height="@dimen/contrast_button_total_size" 58 android:background="@drawable/accessibility_contrast_button_background"> 59 60 <ImageView 61 android:layout_gravity="center" 62 android:layout_height="wrap_content" 63 android:layout_width="wrap_content" 64 android:contentDescription="@null" 65 android:src="@drawable/ic_contrast_standard"/> 66 </FrameLayout> 67 68 <TextView 69 android:layout_width="match_parent" 70 android:layout_height="wrap_content" 71 android:layout_marginTop="@dimen/contrast_button_text_spacing" 72 android:gravity="center_horizontal|top" 73 android:ellipsize="end" 74 android:singleLine="true" 75 android:textSize="@dimen/contrast_button_text_size" 76 android:text="@string/lock_screen_notifs_show_compact" 77 android:textColor="?androidprv:attr/materialColorOnSurface"/> 78 </LinearLayout> 79 80 <Space 81 android:layout_width="@dimen/contrast_button_horizontal_spacing" 82 android:layout_height="match_parent" /> 83 84 <LinearLayout 85 android:id="@+id/button_full" 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" 88 android:orientation="vertical"> 89 90 <FrameLayout 91 android:layout_width="@dimen/contrast_button_total_size" 92 android:layout_height="@dimen/contrast_button_total_size" 93 android:background="@drawable/accessibility_contrast_button_background"> 94 95 <ImageView 96 android:layout_gravity="center" 97 android:layout_height="wrap_content" 98 android:layout_width="wrap_content" 99 android:contentDescription="@null" 100 android:src="@drawable/ic_contrast_high"/> 101 </FrameLayout> 102 103 <TextView 104 android:layout_width="match_parent" 105 android:layout_height="wrap_content" 106 android:layout_marginTop="@dimen/contrast_button_text_spacing" 107 android:gravity="center_horizontal|top" 108 android:ellipsize="end" 109 android:singleLine="true" 110 android:textSize="@dimen/contrast_button_text_size" 111 android:text="@string/lock_screen_notifs_show_full_list" 112 android:textColor="?androidprv:attr/materialColorOnSurface"/> 113 </LinearLayout> 114 115 <Space 116 android:layout_width="0dp" 117 android:layout_height="match_parent" 118 android:layout_weight="1"/> 119 </LinearLayout> 120 121</LinearLayout> 122