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
23    <!-- This ConstraintLayout is to make a full-screen transparent background -->
24    <!-- so that the ripple effects in the controller bar buttons work.        -->
25    <!-- If you put the transparent background on the root element of          -->
26    <!-- in_call_fragment, the BackgroundImageView will cover up the ripples.  -->
27    <androidx.constraintlayout.widget.ConstraintLayout
28        android:layout_width="match_parent"
29        android:layout_height="match_parent"
30        app:layout_constraintBottom_toBottomOf="parent"
31        app:layout_constraintTop_toTopOf="parent"
32        app:layout_constraintEnd_toEndOf="parent"
33        app:layout_constraintStart_toStartOf="parent"
34        android:background="@android:color/transparent">
35
36        <fragment
37            android:name="com.android.car.dialer.ui.dialpad.InCallDialpadFragment"
38            android:id="@+id/incall_dialpad_fragment"
39            android:layout_width="match_parent"
40            android:layout_height="0dp"
41            app:layout_constraintTop_toTopOf="parent"
42            app:layout_constraintBottom_toTopOf="@+id/ongoing_call_control_bar"/>
43
44        <LinearLayout
45            android:layout_width="match_parent"
46            android:layout_height="0dp"
47            app:layout_constraintTop_toTopOf="parent"
48            app:layout_constraintBottom_toTopOf="@+id/ongoing_call_control_bar"
49            app:layout_constraintEnd_toEndOf="parent"
50            app:layout_constraintStart_toStartOf="parent">
51
52            <include
53                layout="@layout/conference_call_user_list"
54                android:id="@+id/conference_profiles"/>
55
56        </LinearLayout>
57
58        <fragment
59            android:id="@+id/onhold_user_profile"
60            android:name="com.android.car.dialer.ui.activecall.OnHoldCallUserProfileFragment"
61            android:layout_width="match_parent"
62            android:layout_height="@dimen/onhold_user_info_height"
63            android:layout_marginTop="@dimen/onhold_profile_margin_y"
64            android:layout_marginStart="@dimen/onhold_profile_margin_x"
65            android:layout_marginEnd="@dimen/onhold_profile_margin_x"
66            app:layout_constraintTop_toTopOf="parent"
67            app:layout_constraintStart_toStartOf="parent"
68            app:layout_constraintEnd_toEndOf="parent"/>
69
70        <fragment
71            android:id="@+id/ongoing_call_control_bar"
72            android:name="com.android.car.dialer.ui.activecall.OnGoingCallControllerBarFragment"
73            android:layout_width="match_parent"
74            android:layout_height="@dimen/in_call_controller_bar_height"
75            android:layout_marginStart="@dimen/in_call_controller_bar_margin"
76            android:layout_marginEnd="@dimen/in_call_controller_bar_margin"
77            android:layout_marginBottom="@dimen/in_call_controller_bar_margin_bottom"
78            app:layout_constraintBottom_toBottomOf="parent"
79            app:layout_constraintEnd_toEndOf="parent"
80            app:layout_constraintStart_toStartOf="parent"/>
81    </androidx.constraintlayout.widget.ConstraintLayout>
82
83</androidx.constraintlayout.widget.ConstraintLayout>
84