1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2018 The Android Open Source Project
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8  http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15-->
16<androidx.constraintlayout.widget.ConstraintLayout
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:app="http://schemas.android.com/apk/res-auto"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent">
21
22    <com.android.car.apps.common.BackgroundImageView
23        android:id="@+id/background_image"
24        android:layout_width="match_parent"
25        android:layout_height="match_parent"/>
26
27    <!-- This ConstraintLayout is to make a full-screen transparent background -->
28    <!-- so that the ripple effects in the controller bar buttons work.        -->
29    <!-- If you put the transparent background on the root element of          -->
30    <!-- in_call_fragment, the BackgroundImageView will cover up the ripples.  -->
31    <androidx.constraintlayout.widget.ConstraintLayout
32        android:layout_width="match_parent"
33        android:layout_height="match_parent"
34        app:layout_constraintBottom_toBottomOf="parent"
35        app:layout_constraintTop_toTopOf="parent"
36        app:layout_constraintEnd_toEndOf="parent"
37        app:layout_constraintStart_toStartOf="parent"
38        android:background="@android:color/transparent">
39
40        <fragment
41            android:name="com.android.car.dialer.ui.dialpad.InCallDialpadFragment"
42            android:id="@+id/incall_dialpad_fragment"
43            android:layout_width="match_parent"
44            android:layout_height="0dp"
45            app:layout_constraintTop_toTopOf="parent"
46            app:layout_constraintBottom_toTopOf="@+id/ongoing_call_control_bar"/>
47
48        <include
49            layout="@layout/user_profile_large"
50            android:id="@+id/user_profile_container"
51            android:layout_width="match_parent"
52            android:layout_height="0dp"
53            app:layout_constraintTop_toTopOf="parent"
54            app:layout_constraintBottom_toTopOf="@+id/ongoing_call_control_bar"
55            app:layout_constraintEnd_toEndOf="parent"
56            app:layout_constraintStart_toStartOf="parent"/>
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