blob: b17fc7358a02566de245bc083f1a4ace5b0cfd0b (
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
|
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2016 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
-->
<com.android.incallui.answer.impl.AffordanceHolderLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/incoming_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipChildren="false"
android:clipToPadding="false"
android:keepScreenOn="true">
<TextureView
android:id="@+id/incoming_preview_texture_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:importantForAccessibility="no"
android:visibility="gone"/>
<com.android.incallui.answer.impl.FixedAspectSurfaceView
android:id="@+id/incoming_preview_surface_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:importantForAccessibility="no"
android:visibility="gone"
app:scaleHeight="@bool/scale_height"
app:scaleWidth="@bool/scale_width"/>
<View
android:id="@+id/incoming_preview_texture_view_overlay"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/videocall_overlay_background_color"
android:visibility="gone"/>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">
<TextView
android:id="@+id/videocall_video_off"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:padding="64dp"
android:accessibilityTraversalBefore="@+id/videocall_speaker_button"
android:drawablePadding="8dp"
android:drawableTop="@drawable/quantum_ic_videocam_off_white_36"
android:gravity="center"
android:text="@string/call_incoming_video_is_off"
android:textAppearance="@style/Dialer.Incall.TextAppearance"
android:visibility="gone"/>
<LinearLayout
android:id="@+id/incall_contact_grid"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="24dp"
android:clipChildren="false"
android:clipToPadding="false"
android:gravity="top|center_horizontal"
android:orientation="vertical">
<include
android:id="@id/contactgrid_top_row"
layout="@layout/incall_contactgrid_top_row"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginStart="24dp"
android:layout_marginEnd="24dp"/>
<!-- We have to keep deprecated singleLine to allow long text being truncated with ellipses.
a bug -->
<com.android.incallui.autoresizetext.AutoResizeTextView
android:id="@id/contactgrid_contact_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginStart="24dp"
android:layout_marginEnd="24dp"
android:singleLine="true"
android:textAppearance="@style/Dialer.Incall.TextAppearance.Large"
android:textSize="@dimen/answer_contact_name_text_size"
app:autoResizeText_minTextSize="@dimen/answer_contact_name_min_size"
tools:ignore="Deprecated"
tools:text="Jake Peralta"/>
<include
android:id="@id/contactgrid_bottom_row"
layout="@layout/incall_contactgrid_bottom_row"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginEnd="24dp"/>
<TextView
android:id="@+id/incall_important_call_badge"
android:layout_width="wrap_content"
android:layout_height="48dp"
android:layout_marginTop="4dp"
android:layout_marginBottom="@dimen/answer_importance_margin_bottom"
android:gravity="center"
android:elevation="@dimen/answer_data_elevation"
android:maxLines="1"
android:text="@string/call_incoming_important"
android:textAllCaps="true"
android:textSize="14sp"
android:textStyle="bold"
android:textColor="@color/background_dialer_white"
android:background="@drawable/urgent_call_background"/>
<FrameLayout
android:id="@+id/incall_location_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<include
layout="@layout/device_number_row"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<FrameLayout
android:id="@+id/incall_data_container"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:clipChildren="false"
android:clipToPadding="false"/>
<!-- Space holder for answer method. This is used to get better scaling to make room for
incall_data_container on different screen size. -->
<Space
android:layout_width="match_parent"
android:layout_height="220dp"/>
</LinearLayout>
<FrameLayout
android:id="@+id/answer_method_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipChildren="false"
android:clipToPadding="false"/>
</FrameLayout>
<com.android.incallui.answer.impl.affordance.SwipeButtonView
android:id="@+id/incoming_secondary_button"
android:layout_width="56dp"
android:layout_height="56dp"
android:layout_gravity="bottom|start"
android:scaleType="center"
android:src="@drawable/quantum_ic_message_white_24"
android:visibility="invisible"
tools:visibility="visible"/>
<com.android.incallui.answer.impl.affordance.SwipeButtonView
android:id="@+id/incoming_secondary_button2"
android:layout_width="56dp"
android:layout_height="56dp"
android:layout_gravity="bottom|end"
android:scaleType="center"
android:src="@drawable/ic_end_answer_32"
android:visibility="invisible"
tools:visibility="visible"/>
</com.android.incallui.answer.impl.AffordanceHolderLayout>
|