blob: 78e097958243667d622068da0e575a74065b7a8c (
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
|
<?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
-->
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="@dimen/answer_swipe_dead_zone_sides"
android:clipChildren="false"
android:clipToPadding="false"
android:layout_marginEnd="@dimen/answer_swipe_dead_zone_sides">
<LinearLayout
android:id="@+id/incoming_swipe_to_answer_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:accessibilityLiveRegion="polite"
android:clipChildren="false"
android:clipToPadding="false"
android:gravity="center_horizontal|bottom"
android:orientation="vertical"
android:visibility="visible">
<TextView
android:id="@+id/incoming_will_disconnect_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="116dp"
android:layout_gravity="center_horizontal"
android:alpha="0"
android:text="@string/call_incoming_will_disconnect"
android:textColor="@color/blue_grey_100"
android:textSize="16sp"
tools:alpha="1"/>
<TextView
android:id="@+id/incoming_swipe_to_answer_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="18dp"
android:layout_gravity="center_horizontal"
android:focusable="false"
android:text="@string/call_incoming_swipe_to_answer"
android:textAppearance="@style/Dialer.Incall.TextAppearance.Hint"/>
<FrameLayout
android:id="@+id/incoming_call_puck_container"
android:layout_width="@dimen/answer_contact_puck_size_photo"
android:layout_height="@dimen/answer_contact_puck_size_photo"
android:layout_marginBottom="10dp"
android:layout_gravity="center_horizontal"
android:clipChildren="false"
android:clipToPadding="false"
android:contentDescription="@string/a11y_incoming_call_swipe_to_answer">
<!-- Puck background and icon are hosted in the separated views to animate separately. -->
<ImageView
android:id="@+id/incoming_call_puck_bg"
android:layout_width="@dimen/answer_contact_puck_size_no_photo"
android:layout_height="@dimen/answer_contact_puck_size_no_photo"
android:layout_gravity="center"
android:background="@drawable/circular_background"
android:contentDescription="@null"
android:duplicateParentState="true"
android:elevation="8dp"
android:focusable="false"
android:stateListAnimator="@animator/activated_button_elevation"/>
<ImageView
android:id="@+id/incoming_call_puck_icon"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_gravity="center"
android:contentDescription="@null"
android:duplicateParentState="true"
android:elevation="16dp"
android:focusable="false"
android:outlineProvider="none"
android:src="@drawable/quantum_ic_call_white_24"
android:tint="@color/incoming_answer_icon"
android:tintMode="src_atop"
tools:outlineProvider="background"/>
</FrameLayout>
<TextView
android:id="@+id/incoming_swipe_to_reject_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:layout_gravity="center_horizontal"
android:alpha="0"
android:focusable="false"
android:text="@string/call_incoming_swipe_to_reject"
android:textAppearance="@style/Dialer.Incall.TextAppearance.Hint"
tools:alpha="1"/>
</LinearLayout>
<FrameLayout
android:id="@+id/hint_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipChildren="false"
android:clipToPadding="false"/>
</FrameLayout>
|