1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2017 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<RelativeLayout
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="wrap_content"
22    android:paddingTop="@dimen/call_entry_padding">
23
24  <com.android.dialer.calllogutils.CallTypeIconsView
25      android:id="@+id/call_direction"
26      android:layout_width="wrap_content"
27      android:layout_height="wrap_content"
28      android:layout_marginStart="@dimen/call_entry_padding"
29      app:useLargeIcons="true"/>
30
31  <TextView
32      android:id="@+id/call_type"
33      style="@style/Dialer.TextAppearance.Primary"
34      android:layout_width="match_parent"
35      android:layout_height="wrap_content"
36      android:layout_marginStart="@dimen/call_entry_text_left_margin"
37      android:layout_marginEnd="16dp"
38      android:layout_toStartOf="@+id/call_duration"
39      android:gravity="start"/>
40
41  <TextView
42      android:id="@+id/call_time"
43      style="@style/Dialer.TextAppearance.Secondary"
44      android:layout_width="wrap_content"
45      android:layout_height="wrap_content"
46      android:layout_marginBottom="@dimen/call_entry_bottom_padding"
47      android:layout_marginStart="@dimen/call_entry_text_left_margin"
48      android:layout_marginEnd="16dp"
49      android:layout_below="@+id/call_type"/>
50
51  <TextView
52      android:id="@+id/call_duration"
53      style="@style/Dialer.TextAppearance.Primary.Ellipsize"
54      android:layout_width="wrap_content"
55      android:layout_height="wrap_content"
56      android:layout_marginEnd="@dimen/call_entry_padding"
57      android:layout_alignParentEnd="true"/>
58
59  <include
60      android:id="@+id/ec_container"
61      layout="@layout/ec_data_container"
62      android:layout_width="match_parent"
63      android:layout_height="@dimen/ec_container_height"
64      android:layout_below="@+id/call_time"
65      android:visibility="gone"/>
66
67  <TextView
68      android:id="@+id/post_call_note"
69      style="@style/Dialer.TextAppearance.Secondary.Ellipsize"
70      android:layout_width="match_parent"
71      android:layout_height="@dimen/ec_container_height"
72      android:layout_below="@+id/ec_container"
73      android:paddingStart="@dimen/call_entry_text_left_margin"
74      android:background="?attr/selectableItemBackground"
75      android:gravity="center_vertical"
76      android:maxLines="2"
77      android:visibility="gone"/>
78  <TextView
79      android:id="@+id/rtt_transcript"
80      style="@style/Dialer.TextAppearance.Secondary.Ellipsize"
81      android:layout_width="match_parent"
82      android:layout_height="wrap_content"
83      android:layout_marginBottom="@dimen/call_entry_bottom_padding"
84      android:layout_marginStart="@dimen/call_entry_text_left_margin"
85      android:layout_marginEnd="@dimen/call_entry_padding"
86      android:layout_below="@id/post_call_note"
87      android:maxLines="2"
88      android:visibility="gone"/>
89
90  <View
91      android:id="@+id/divider"
92      android:layout_width="match_parent"
93      android:layout_height="1dp"
94      android:layout_marginTop="@dimen/ec_divider_top_bottom_margin"
95      android:layout_marginBottom="@dimen/ec_divider_top_bottom_margin"
96      android:layout_marginStart="@dimen/call_entry_text_left_margin"
97      android:layout_below="@id/rtt_transcript"
98      android:background="@color/dialer_divider_line_color"
99      android:visibility="gone"/>
100</RelativeLayout>