• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright 2017 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<androidx.constraintlayout.widget.ConstraintLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:app="http://schemas.android.com/apk/res-auto"
21    android:id="@+id/car_settings_activity_wrapper"
22    android:layout_width="match_parent"
23    android:layout_height="match_parent">
24
25    <FrameLayout
26        android:id="@+id/top_level_menu_container"
27        android:layout_width="@dimen/top_level_menu_width"
28        android:layout_height="match_parent"
29        app:layout_constraintStart_toStartOf="parent"
30        app:layout_constraintEnd_toStartOf="@id/top_level_divider">
31
32        <fragment
33            class="com.android.car.settings.common.TopLevelMenuFragment"
34            android:id="@+id/top_level_menu"
35            android:layout_width="match_parent"
36            android:layout_height="match_parent"/>
37    </FrameLayout>
38
39    <View
40        android:id="@+id/top_level_divider"
41        android:layout_width="@dimen/top_level_divider_width"
42        android:layout_height="match_parent"
43        app:layout_constraintStart_toEndOf="@id/top_level_menu_container"
44        app:layout_constraintEnd_toStartOf="@id/top_level_divider"
45        style="@style/CarSettingsActivityDividerStyle"/>
46
47    <FrameLayout
48        android:id="@+id/fragment_container_wrapper"
49        android:layout_width="0dp"
50        android:layout_height="match_parent"
51        app:layout_constraintStart_toEndOf="@id/top_level_divider"
52        app:layout_constraintEnd_toEndOf="parent"
53        style="@style/CarSettingsFragmentContainerStyle">
54
55        <com.android.car.settings.common.rotary.SettingsFocusParkingView
56            android:id="@+id/settings_focus_parking_view"
57            android:layout_width="wrap_content"
58            android:layout_height="wrap_content"/>
59
60        <FrameLayout
61            android:id="@+id/fragment_container"
62            android:layout_width="match_parent"
63            android:layout_height="match_parent"/>
64
65        <!-- set the text clickable to true so that it blocks touch event -->
66        <TextView
67            android:id="@+id/restricted_message"
68            android:layout_width="match_parent"
69            android:layout_height="match_parent"
70            android:background="?android:attr/colorPrimary"
71            android:clickable="true"
72            android:focusable="false"
73            android:gravity="center"
74            android:text="@string/restricted_while_driving"
75            android:textAppearance="?android:attr/textAppearanceLarge"
76            android:visibility="gone"/>
77
78    </FrameLayout>
79</androidx.constraintlayout.widget.ConstraintLayout>
80