1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2018 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
17  xmlns:tools="http://schemas.android.com/tools"
18  android:layout_width="match_parent"
19  android:layout_height="match_parent"
20  android:background="@android:color/black"
21  android:orientation="vertical">
22
23  <TextureView
24    android:id="@+id/videocall_video_remote"
25    android:layout_width="match_parent"
26    android:layout_height="match_parent"
27    android:layout_alignParentStart="true"
28    android:layout_alignParentTop="true"
29    android:importantForAccessibility="no"/>
30
31  <ImageView
32    android:id="@+id/videocall_remote_off_blurred_image_view"
33    android:layout_width="match_parent"
34    android:layout_height="match_parent"
35    android:layout_alignParentStart="true"
36    android:layout_alignParentTop="true"
37    android:scaleType="fitCenter"/>
38
39  <TextView
40    android:gravity="center"
41    android:id="@+id/videocall_remote_video_off"
42    android:layout_width="wrap_content"
43    android:layout_height="wrap_content"
44    android:layout_centerInParent="true"
45    android:accessibilityTraversalBefore="@+id/videocall_speaker_button"
46    android:drawablePadding="8dp"
47    android:drawableTop="@drawable/quantum_ic_videocam_off_white_36"
48    android:drawableTint="?colorIcon"
49    android:padding="64dp"
50    android:text="@string/videocall_remote_video_off"
51    android:textAppearance="@style/Dialer.Incall.TextAppearance"
52    android:visibility="gone"
53    tools:visibility="visible"/>
54
55  <View
56    android:id="@+id/videocall_fullscreen_background"
57    android:layout_width="match_parent"
58    android:layout_height="match_parent"
59    android:layout_alignParentBottom="true"
60    android:layout_alignParentStart="true"
61    android:background="@color/videocall_overlay_background_color"
62    tools:visibility="gone"/>
63
64  <TextureView
65    android:id="@+id/videocall_video_preview"
66    android:layout_width="@dimen/videocall_preview_width"
67    android:layout_height="@dimen/videocall_preview_height"
68    android:layout_marginBottom="@dimen/videocall_preview_margin_bottom"
69    android:layout_marginStart="@dimen/videocall_preview_margin_start"
70    android:layout_alignParentBottom="true"
71    android:layout_alignParentStart="true"
72    android:importantForAccessibility="no"/>
73
74  <ImageView
75    android:id="@+id/videocall_preview_off_blurred_image_view"
76    android:layout_width="@dimen/videocall_preview_width"
77    android:layout_height="@dimen/videocall_preview_height"
78    android:layout_marginBottom="@dimen/videocall_preview_margin_bottom"
79    android:layout_marginStart="@dimen/videocall_preview_margin_start"
80    android:layout_alignParentBottom="true"
81    android:layout_alignParentStart="true"
82    android:scaleType="center"/>
83
84  <View
85    android:id="@+id/videocall_green_screen_background"
86    android:layout_width="match_parent"
87    android:layout_height="match_parent"
88    android:layout_alignParentBottom="true"
89    android:layout_alignParentStart="true"
90    android:background="@color/videocall_overlay_background_color"
91    tools:visibility="gone"/>
92
93  <ImageView
94    android:id="@+id/videocall_video_preview_off_overlay"
95    android:layout_width="wrap_content"
96    android:layout_height="wrap_content"
97    android:layout_alignBottom="@+id/videocall_video_preview"
98    android:layout_alignLeft="@+id/videocall_video_preview"
99    android:layout_alignRight="@+id/videocall_video_preview"
100    android:layout_alignTop="@+id/videocall_video_preview"
101    android:scaleType="center"
102    android:src="@drawable/quantum_ic_videocam_off_vd_theme_24"
103    android:tint="?colorIcon"
104    android:tintMode="src_in"
105    android:visibility="gone"
106    android:importantForAccessibility="no"
107    tools:visibility="visible"/>
108
109  <ImageView
110    android:id="@+id/videocall_video_preview_mute_overlay"
111    android:layout_width="32dp"
112    android:layout_height="32dp"
113    android:layout_alignBottom="@+id/videocall_video_preview"
114    android:layout_alignRight="@+id/videocall_video_preview"
115    android:background="@drawable/videocall_background_circle_white"
116    android:contentDescription="@string/incall_content_description_muted"
117    android:scaleType="center"
118    android:src="@drawable/quantum_ic_mic_off_vd_theme_24"
119    android:tint="@android:color/black"
120    android:visibility="gone"
121    tools:visibility="visible"/>
122
123  <include
124    layout="@layout/videocall_controls"
125    android:layout_width="match_parent"
126    android:layout_height="match_parent"/>
127
128  <FrameLayout
129    android:id="@+id/videocall_on_hold_banner"
130    android:layout_width="match_parent"
131    android:layout_height="wrap_content"
132    android:layout_alignParentTop="true"/>
133
134</RelativeLayout>
135