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
18<androidx.constraintlayout.widget.ConstraintLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:app="http://schemas.android.com/apk/res-auto"
21    android:layout_height="wrap_content"
22    android:layout_width="match_parent">
23
24    <ImageView
25        android:id="@+id/optional_image"
26        android:layout_height="@dimen/card_content_image_size"
27        android:layout_width="@dimen/card_content_image_size"
28        android:visibility="gone"
29        app:layout_constraintStart_toStartOf="parent"
30        app:layout_constraintTop_toTopOf="@+id/primary_text"
31        app:layout_constraintBottom_toBottomOf="@+id/secondary_text"/>
32
33    <TextView
34        android:id="@+id/primary_text"
35        android:layout_height="wrap_content"
36        android:layout_width="0dp"
37        android:maxLines="2"
38        android:textAppearance="?android:attr/textAppearanceLarge"
39        android:layout_marginStart="@dimen/card_content_image_margin"
40        app:layout_goneMarginStart="0dp"
41        app:layout_constraintStart_toEndOf="@+id/optional_image"
42        app:layout_constraintEnd_toEndOf="parent"
43        app:layout_constraintTop_toTopOf="parent"
44        app:layout_constraintBottom_toTopOf="@+id/secondary_text"/>
45
46    <Chronometer
47        android:id="@+id/optional_timer"
48        android:visibility="gone"
49        android:layout_height="wrap_content"
50        android:layout_width="wrap_content"
51        android:textAppearance="?android:attr/textAppearanceSmall"
52        app:layout_constraintStart_toStartOf="@+id/primary_text"
53        app:layout_constraintTop_toTopOf="@+id/secondary_text"
54        app:layout_constraintBottom_toBottomOf="@+id/secondary_text"/>
55
56    <TextView
57        android:id="@+id/optional_timer_separator"
58        android:visibility="gone"
59        android:layout_height="wrap_content"
60        android:layout_width="wrap_content"
61        android:text="@string/ongoing_call_duration_text_separator"
62        android:textAppearance="?android:attr/textAppearanceSmall"
63        app:layout_constraintStart_toEndOf="@+id/optional_timer"
64        app:layout_constraintTop_toTopOf="@+id/secondary_text"
65        app:layout_constraintBottom_toBottomOf="@+id/secondary_text"/>
66
67    <TextView
68        android:id="@+id/secondary_text"
69        android:layout_height="wrap_content"
70        android:layout_width="0dp"
71        android:singleLine="true"
72        android:textAppearance="?android:attr/textAppearanceSmall"
73        android:layout_marginTop="@dimen/secondary_text_margin_top"
74        app:layout_constraintStart_toEndOf="@+id/optional_timer_separator"
75        app:layout_constraintEnd_toEndOf="@+id/primary_text"
76        app:layout_constraintTop_toBottomOf="@+id/primary_text"
77        app:layout_constraintBottom_toBottomOf="parent"/>
78</androidx.constraintlayout.widget.ConstraintLayout>
79