1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2020 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 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 app:layout_constraintBottom_toBottomOf="parent" 23 app:layout_constraintTop_toTopOf="parent" 24 app:layout_constraintEnd_toEndOf="parent" 25 app:layout_constraintStart_toStartOf="parent"> 26 27 <LinearLayout 28 android:id="@+id/conference_header" 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content" 31 android:layout_marginTop="35dp" 32 android:layout_marginBottom="35dp" 33 android:layout_marginLeft="135dp" 34 app:layout_constraintBottom_toTopOf="@+id/recycler_view" 35 app:layout_constraintTop_toTopOf="parent" 36 app:layout_constraintEnd_toEndOf="parent" 37 app:layout_constraintStart_toStartOf="parent"> 38 39 <TextView 40 android:id="@+id/conference_title" 41 android:textAppearance="@style/TextAppearance.InCallState" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content"/> 44 45 <!-- A textView without a fixed width will call requestLayout() every time its text is changed --> 46 <!-- So we have to make this Chronometer match_parent to avoid redrawing the whole screen --> 47 <Chronometer 48 android:id="@+id/call_duration" 49 android:layout_width="match_parent" 50 android:layout_height="wrap_content" 51 android:textAppearance="@style/TextAppearance.InCallState" 52 android:singleLine="true"/> 53 </LinearLayout> 54 55 <com.android.car.ui.recyclerview.CarUiRecyclerView 56 android:id="@+id/recycler_view" 57 android:layout_width="match_parent" 58 android:layout_height="0dp" 59 android:layout_marginTop="30dp" 60 app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" 61 app:layout_constraintBottom_toBottomOf="parent" 62 app:layout_constraintTop_toBottomOf="@+id/conference_header" 63 app:layout_constraintEnd_toEndOf="parent" 64 app:layout_constraintStart_toStartOf="parent"/> 65 66</androidx.constraintlayout.widget.ConstraintLayout>