• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:layout_width="match_parent"
20    android:layout_height="wrap_content"
21    android:background="@color/status_icon_panel_bg_color">
22    <com.android.car.ui.FocusParkingView
23        android:layout_width="wrap_content"
24        android:layout_height="wrap_content"/>
25    <com.android.car.ui.FocusArea
26        android:layout_width="match_parent"
27        android:layout_height="wrap_content"
28        android:gravity="center"
29        android:orientation="vertical">
30        <androidx.constraintlayout.widget.ConstraintLayout
31            android:layout_width="match_parent"
32            android:layout_height="wrap_content">
33            <ScrollView
34                android:layout_width="match_parent"
35                android:layout_height="0dp"
36                android:paddingTop="16dp"
37                app:layout_constraintHeight_default="wrap"
38                app:layout_constraintTop_toTopOf="parent"
39                app:layout_constraintStart_toStartOf="parent"
40                app:layout_constraintEnd_toEndOf="parent"
41                app:layout_constraintBottom_toTopOf="@+id/qc_display_footer_button">
42                <LinearLayout
43                    android:layout_width="match_parent"
44                    android:layout_height="wrap_content"
45                    android:orientation="vertical">
46                    <com.android.systemui.car.qc.SystemUIQCView
47                        android:layout_width="match_parent"
48                        android:layout_height="wrap_content"
49                        android:gravity="center"
50                        app:remoteQCProvider="content://com.android.car.settings.qc/brightness_slider"/>
51                    <com.android.systemui.car.qc.SystemUIQCView
52                        android:layout_width="match_parent"
53                        android:layout_height="wrap_content"
54                        android:gravity="center"
55                        app:remoteQCProvider="content://com.android.car.settings.qc/adaptive_brightness_switch"/>
56                </LinearLayout>
57            </ScrollView>
58            <com.android.systemui.car.qc.QCFooterButton
59                android:id="@+id/qc_display_footer_button"
60                app:layout_constraintBottom_toBottomOf="parent"
61                app:layout_constraintStart_toStartOf="parent"
62                app:layout_constraintEnd_toEndOf="parent"
63                style="@style/QCFooterButtonStyle"
64                android:text="@string/qc_footer_display_settings"
65                app:intent="intent:#Intent;component=com.android.car.settings/.common.CarSettingActivities$DisplaySettingsActivity;launchFlags=0x14008000;end"/>
66        </androidx.constraintlayout.widget.ConstraintLayout>
67    </com.android.car.ui.FocusArea>
68</FrameLayout>