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 android:layoutDirection="ltr" 24 tools:context=".CarLauncher"> 25 26 <androidx.constraintlayout.widget.Guideline 27 android:id="@+id/start_edge" 28 android:layout_width="wrap_content" 29 android:layout_height="wrap_content" 30 android:orientation="vertical" 31 app:layout_constraintGuide_begin="@dimen/horizontal_border_size"/> 32 33 <androidx.constraintlayout.widget.Guideline 34 android:id="@+id/top_edge" 35 android:layout_width="wrap_content" 36 android:layout_height="wrap_content" 37 android:orientation="horizontal" 38 app:layout_constraintGuide_begin="@dimen/vertical_border_size"/> 39 40 <androidx.constraintlayout.widget.Guideline 41 android:id="@+id/end_edge" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:orientation="vertical" 45 app:layout_constraintGuide_end="@dimen/horizontal_border_size"/> 46 47 <androidx.constraintlayout.widget.Guideline 48 android:id="@+id/bottom_edge" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:orientation="horizontal" 52 app:layout_constraintGuide_end="@dimen/vertical_border_size"/> 53 54 <androidx.constraintlayout.widget.Guideline 55 android:id="@+id/divider_vertical" 56 android:layout_width="wrap_content" 57 android:layout_height="wrap_content" 58 android:orientation="vertical" 59 app:layout_constraintGuide_percent="@dimen/contextual_screen_percentage"/> 60 61 <androidx.constraintlayout.widget.Guideline 62 android:id="@+id/divider_horizontal" 63 android:layout_width="wrap_content" 64 android:layout_height="wrap_content" 65 android:orientation="horizontal" 66 app:layout_constraintGuide_percent="@dimen/maps_screen_percentage"/> 67 68 <View 69 android:id="@+id/top_line" 70 style="@style/HorizontalLineDivider" 71 app:layout_constraintTop_toTopOf="parent"/> 72 73 <androidx.cardview.widget.CardView 74 style="@style/CardViewStyle" 75 android:layout_width="0dp" 76 android:layout_height="0dp" 77 android:layout_margin="@dimen/main_screen_widget_margin" 78 app:layout_constraintBottom_toTopOf="@+id/divider_horizontal" 79 app:layout_constraintRight_toLeftOf="@+id/end_edge" 80 app:layout_constraintLeft_toRightOf="@+id/start_edge" 81 android:layoutDirection="locale" 82 app:layout_constraintTop_toBottomOf="@+id/top_edge"> 83 <android.car.app.CarActivityView 84 android:id="@+id/maps" 85 android:layout_width="match_parent" 86 android:layout_height="match_parent"/> 87 </androidx.cardview.widget.CardView> 88 89 <FrameLayout 90 android:id="@+id/contextual" 91 android:layout_width="0dp" 92 android:layout_height="0dp" 93 android:layout_margin="@dimen/main_screen_widget_margin" 94 app:layout_constraintBottom_toTopOf="@+id/bottom_edge" 95 app:layout_constraintRight_toLeftOf="@+id/end_edge" 96 app:layout_constraintLeft_toRightOf="@+id/divider_vertical" 97 app:layout_constraintTop_toBottomOf="@+id/divider_horizontal" 98 android:layoutDirection="locale"/> 99 100 <FrameLayout 101 android:id="@+id/playback" 102 android:layout_width="0dp" 103 android:layout_height="0dp" 104 android:layout_margin="@dimen/main_screen_widget_margin" 105 android:layoutDirection="locale" 106 app:layout_constraintBottom_toTopOf="@+id/bottom_edge" 107 app:layout_constraintRight_toLeftOf="@+id/divider_vertical" 108 app:layout_constraintLeft_toRightOf="@+id/start_edge" 109 app:layout_constraintTop_toBottomOf="@+id/divider_horizontal"/> 110 <View 111 android:id="@+id/bottom_line" 112 style="@style/HorizontalLineDivider" 113 app:layout_constraintBottom_toBottomOf="parent"/> 114 115</androidx.constraintlayout.widget.ConstraintLayout> 116