blob: f08531b0cfaa229756d7c92ec20b5367069bf7d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2009 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:id="@+id/call_detail"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:background="@color/background_dialer_list_items" >
<!-- Caller information "card" -->
<LinearLayout
android:id="@+id/caller_information"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/call_detail_horizontal_margin"
android:paddingTop="@dimen/call_detail_top_margin"
android:paddingBottom="@dimen/call_detail_bottom_margin"
android:baselineAligned="false"
android:orientation="horizontal"
android:gravity="center_vertical"
android:translationZ="@dimen/call_detail_translation_z"
android:focusable="true"
android:background="@color/background_dialer_white" >
<QuickContactBadge
android:id="@+id/quick_contact_photo"
android:layout_width="@dimen/contact_photo_size"
android:layout_height="@dimen/contact_photo_size"
android:layout_alignParentStart="true"
android:focusable="true"
/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center_vertical"
android:layout_marginStart="@dimen/call_detail_horizontal_margin"
>
<TextView
android:id="@+id/caller_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?attr/call_log_primary_text_color"
android:textSize="@dimen/call_log_primary_text_size"
android:singleLine="true"
/>
<TextView
android:id="@+id/caller_number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?attr/call_log_secondary_text_color"
android:textSize="@dimen/call_log_secondary_text_size"
android:singleLine="true"
/>
</LinearLayout>
</LinearLayout>
<FrameLayout
android:id="@+id/voicemail_status"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:visibility="gone"
>
<include layout="@layout/call_log_voicemail_status"/>
</FrameLayout>
<TextView
android:id="@+id/voicemail_transcription"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/call_detail_horizontal_margin"
android:paddingEnd="@dimen/call_detail_horizontal_margin"
android:paddingTop="@dimen/transcription_top_margin"
android:paddingBottom="@dimen/transcription_bottom_margin"
android:background="@color/background_dialer_list_items" />
<LinearLayout
android:id="@+id/voicemail_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="@dimen/call_detail_button_spacing"
android:visibility="gone"
>
<!-- The voicemail fragment will be put here. -->
</LinearLayout>
<!--
The list view is under everything.
It contains a first header element which is hidden under the controls UI.
When scrolling, the controls move up until the name bar hits the top.
-->
<ListView
android:id="@+id/history"
android:layout_width="match_parent"
android:layout_height="fill_parent"
/>
</LinearLayout>
<!--
Used to hide the UI when playing a voicemail and the proximity sensor
is detecting something near the screen.
-->
<View
android:id="@+id/blank"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/black"
android:visibility="gone"
android:clickable="true"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
/>
</RelativeLayout>
|