1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2018 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<androidx.constraintlayout.widget.ConstraintLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 xmlns:tools="http://schemas.android.com/tools" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 tools:context=".CarLauncher"> 24 25 <androidx.constraintlayout.widget.Guideline 26 android:id="@+id/start_edge" 27 android:layout_width="wrap_content" 28 android:layout_height="wrap_content" 29 android:orientation="vertical" 30 app:layout_constraintGuide_begin="@dimen/horizontal_border_size"/> 31 32 <androidx.constraintlayout.widget.Guideline 33 android:id="@+id/top_edge" 34 android:layout_width="wrap_content" 35 android:layout_height="wrap_content" 36 android:orientation="horizontal" 37 app:layout_constraintGuide_begin="@dimen/vertical_border_size"/> 38 39 <androidx.constraintlayout.widget.Guideline 40 android:id="@+id/end_edge" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:orientation="vertical" 44 app:layout_constraintGuide_end="@dimen/horizontal_border_size"/> 45 46 <androidx.constraintlayout.widget.Guideline 47 android:id="@+id/bottom_edge" 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content" 50 android:orientation="horizontal" 51 app:layout_constraintGuide_end="@dimen/vertical_border_size"/> 52 53 <androidx.constraintlayout.widget.Guideline 54 android:id="@+id/divider_vertical" 55 android:layout_width="wrap_content" 56 android:layout_height="wrap_content" 57 android:orientation="vertical" 58 app:layout_constraintGuide_percent="@dimen/contextual_screen_percentage"/> 59 60 <androidx.constraintlayout.widget.Guideline 61 android:id="@+id/divider_horizontal" 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:orientation="horizontal" 65 app:layout_constraintGuide_percent="@dimen/maps_screen_percentage"/> 66 67 <View 68 android:id="@+id/top_line" 69 style="@style/HorizontalLineDivider" 70 app:layout_constraintTop_toTopOf="parent"/> 71 72 <androidx.cardview.widget.CardView 73 style="@style/CardViewStyle" 74 android:layout_width="0dp" 75 android:layout_height="0dp" 76 android:layout_margin="@dimen/main_screen_widget_margin" 77 app:layout_constraintBottom_toTopOf="@+id/divider_horizontal" 78 app:layout_constraintEnd_toStartOf="@+id/end_edge" 79 app:layout_constraintStart_toEndOf="@+id/start_edge" 80 app:layout_constraintTop_toBottomOf="@+id/top_edge"> 81 <android.car.app.CarActivityView 82 android:id="@+id/maps" 83 android:layout_width="match_parent" 84 android:layout_height="match_parent"/> 85 </androidx.cardview.widget.CardView> 86 87 <FrameLayout 88 android:id="@+id/contextual" 89 android:layout_width="0dp" 90 android:layout_height="0dp" 91 android:layout_margin="@dimen/main_screen_widget_margin" 92 app:layout_constraintBottom_toTopOf="@+id/bottom_edge" 93 app:layout_constraintEnd_toStartOf="@+id/end_edge" 94 app:layout_constraintStart_toEndOf="@+id/divider_vertical" 95 app:layout_constraintTop_toBottomOf="@+id/divider_horizontal"/> 96 97 <FrameLayout 98 android:id="@+id/playback" 99 android:layout_width="0dp" 100 android:layout_height="0dp" 101 android:layout_margin="@dimen/main_screen_widget_margin" 102 app:layout_constraintBottom_toTopOf="@+id/bottom_edge" 103 app:layout_constraintEnd_toStartOf="@+id/divider_vertical" 104 app:layout_constraintStart_toEndOf="@+id/start_edge" 105 app:layout_constraintTop_toBottomOf="@+id/divider_horizontal"/> 106 <View 107 android:id="@+id/bottom_line" 108 style="@style/HorizontalLineDivider" 109 app:layout_constraintBottom_toBottomOf="parent"/> 110 111</androidx.constraintlayout.widget.ConstraintLayout> 112