1<!-- 2 ~ Copyright (C) 2021 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<FrameLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto" 19 android:id="@+id/mic_privacy_panel" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:layoutDirection="locale" 23 android:background="@color/status_icon_panel_bg_color"> 24 <com.android.car.ui.FocusParkingView 25 android:layout_width="wrap_content" 26 android:layout_height="wrap_content"/> 27 <com.android.car.ui.FocusArea 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content" 30 android:gravity="center" 31 android:orientation="vertical"> 32 <androidx.constraintlayout.widget.ConstraintLayout 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content"> 35 <ScrollView 36 android:layout_width="match_parent" 37 android:layout_height="0dp" 38 android:layout_marginBottom="@dimen/car_quick_controls_footer_button_margin_top" 39 app:layout_constraintHeight_default="wrap" 40 app:layout_constraintTop_toTopOf="parent" 41 app:layout_constraintStart_toStartOf="parent" 42 app:layout_constraintEnd_toEndOf="parent" 43 app:layout_constraintBottom_toTopOf="@+id/qc_mic_footer_button"> 44 <com.android.systemui.car.qc.SystemUIQCView 45 android:layout_width="match_parent" 46 android:layout_height="wrap_content" 47 android:gravity="center" 48 app:localQCProvider="com.android.systemui.car.privacy.MicQcPanel"/> 49 </ScrollView> 50 <com.android.systemui.car.qc.QCFooterButton 51 android:id="@+id/qc_mic_footer_button" 52 app:layout_constraintBottom_toBottomOf="parent" 53 app:layout_constraintStart_toStartOf="parent" 54 app:layout_constraintEnd_toEndOf="parent" 55 style="@style/QCFooterButtonStyle" 56 android:text="@string/privacy_chip_settings" 57 app:intent="intent:#Intent;action=android.settings.PRIVACY_SETTINGS;launchFlags=0x14000000;end" 58 app:disableWhileDriving="true"/> 59 </androidx.constraintlayout.widget.ConstraintLayout> 60 </com.android.car.ui.FocusArea> 61</FrameLayout>