1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2023 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 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:layout_gravity="center" 23 android:orientation="vertical" > 24 25 <TextView 26 android:layout_width="match_parent" 27 android:layout_height="wrap_content" 28 android:layout_gravity="center" 29 android:textAppearance="@style/TextAppearance.Dialog.Body.Message" 30 android:text="@string/qs_record_issue_dropdown_header" /> 31 32 <Button 33 android:id="@+id/issue_type_button" 34 android:layout_width="match_parent" 35 android:layout_height="wrap_content" 36 android:text="@string/qs_record_issue_dropdown_prompt" 37 android:lines="1" 38 android:drawableEnd="@drawable/arrow_pointing_down" 39 android:layout_marginTop="@dimen/qqs_layout_margin_top" 40 android:focusable="false" 41 android:minHeight="@dimen/min_clickable_item_size" 42 android:minWidth="@dimen/min_clickable_item_size" 43 android:clickable="true" /> 44 45 <!-- Screen Record Switch --> 46 <LinearLayout 47 android:id="@+id/screenrecord_switch_container" 48 android:layout_width="match_parent" 49 android:layout_height="wrap_content" 50 android:layout_marginTop="@dimen/qqs_layout_margin_top" 51 android:orientation="horizontal"> 52 53 <ImageView 54 android:layout_width="@dimen/screenrecord_option_icon_size" 55 android:layout_height="@dimen/screenrecord_option_icon_size" 56 android:layout_weight="0" 57 android:src="@drawable/ic_screenrecord" 58 app:tint="?androidprv:attr/materialColorOnSurface" 59 android:importantForAccessibility="no" 60 android:layout_gravity="center" 61 android:layout_marginEnd="@dimen/screenrecord_option_padding" /> 62 63 <TextView 64 android:layout_width="0dp" 65 android:layout_height="wrap_content" 66 android:minHeight="@dimen/screenrecord_option_icon_size" 67 android:layout_weight="1" 68 android:layout_gravity="fill_vertical" 69 android:gravity="center" 70 android:text="@string/quick_settings_screen_record_label" 71 android:textAppearance="@style/TextAppearance.Dialog.Body.Message" 72 android:importantForAccessibility="no"/> 73 74 <Switch 75 android:id="@+id/screenrecord_switch" 76 android:layout_width="wrap_content" 77 android:layout_height="wrap_content" 78 android:gravity="center" 79 android:layout_gravity="fill_vertical" 80 style="@style/ScreenRecord.Switch" 81 android:layout_weight="0" 82 android:contentDescription="@string/quick_settings_screen_record_label" /> 83 </LinearLayout> 84 85 <!-- Bug Report Switch --> 86 <LinearLayout 87 android:id="@+id/bugreport_switch_container" 88 android:layout_width="match_parent" 89 android:layout_height="wrap_content" 90 android:layout_marginTop="@dimen/qqs_layout_margin_top" 91 android:orientation="horizontal"> 92 93 <ImageView 94 android:layout_width="@dimen/screenrecord_option_icon_size" 95 android:layout_height="@dimen/screenrecord_option_icon_size" 96 android:layout_weight="0" 97 android:src="@drawable/ic_bugreport" 98 app:tint="?androidprv:attr/materialColorOnSurface" 99 android:importantForAccessibility="no" 100 android:layout_gravity="center" 101 android:layout_marginEnd="@dimen/screenrecord_option_padding" /> 102 103 <TextView 104 android:layout_width="0dp" 105 android:layout_height="wrap_content" 106 android:minHeight="@dimen/screenrecord_option_icon_size" 107 android:layout_weight="1" 108 android:layout_gravity="fill_vertical" 109 android:gravity="center" 110 android:text="@string/qs_record_issue_bug_report" 111 android:textAppearance="@style/TextAppearance.Dialog.Body.Message" 112 android:importantForAccessibility="no"/> 113 114 <Switch 115 android:id="@+id/bugreport_switch" 116 android:layout_width="wrap_content" 117 android:layout_height="wrap_content" 118 android:gravity="center" 119 android:layout_gravity="fill_vertical" 120 android:layout_weight="0" 121 style="@style/ScreenRecord.Switch" 122 android:contentDescription="@string/qs_record_issue_bug_report" /> 123 </LinearLayout> 124</LinearLayout>