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 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:tools="http://schemas.android.com/tools" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:background="@android:color/black" 22 android:keepScreenOn="true"> 23 24 <SurfaceView 25 android:id="@+id/videocall_video_remote" 26 android:layout_width="match_parent" 27 android:layout_height="match_parent" 28 android:importantForAccessibility="no"/> 29 30 <TextView 31 android:gravity="center" 32 android:id="@+id/videocall_remote_video_off" 33 android:layout_width="wrap_content" 34 android:layout_height="wrap_content" 35 android:layout_centerInParent="true" 36 android:accessibilityTraversalBefore="@+id/videocall_speaker_button" 37 android:drawablePadding="8dp" 38 android:drawableTop="@drawable/quantum_ic_videocam_off_white_36" 39 android:drawableTint="?colorIcon" 40 android:padding="64dp" 41 android:text="@string/videocall_remote_video_off" 42 android:textAppearance="@style/Dialer.Incall.TextAppearance" 43 android:visibility="gone" 44 tools:visibility="visible"/> 45 46 <View 47 android:id="@+id/videocall_fullscreen_background" 48 android:layout_width="match_parent" 49 android:layout_height="match_parent" 50 android:background="@color/videocall_overlay_background_color"/> 51 52 <FrameLayout 53 style="@style/VideoPreviewHolder" 54 android:id="@+id/videocall_preview_root"> 55 56 <SurfaceView 57 android:id="@+id/videocall_video_preview" 58 android:layout_width="match_parent" 59 android:layout_height="match_parent" 60 android:importantForAccessibility="no"/> 61 62 <ImageView 63 android:id="@+id/videocall_video_preview_off_overlay" 64 android:layout_width="wrap_content" 65 android:layout_height="wrap_content" 66 android:layout_gravity="center" 67 android:scaleType="center" 68 android:src="@drawable/quantum_ic_videocam_off_vd_theme_24" 69 android:tint="?colorIcon" 70 android:tintMode="src_in" 71 android:visibility="gone" 72 android:importantForAccessibility="no" 73 tools:visibility="visible"/> 74 </FrameLayout> 75 76 <ImageView 77 android:id="@+id/videocall_video_preview_mute_overlay" 78 android:layout_width="32dp" 79 android:layout_height="32dp" 80 android:layout_alignBottom="@id/videocall_preview_root" 81 android:layout_alignEnd="@id/videocall_preview_root" 82 android:layout_marginBottom="-8dp" 83 android:layout_marginEnd="-8dp" 84 android:background="@drawable/videocall_background_circle_white" 85 android:contentDescription="@string/incall_content_description_muted" 86 android:scaleType="center" 87 android:src="@drawable/quantum_ic_mic_off_vd_theme_24" 88 android:tint="@android:color/black" 89 android:visibility="gone" 90 tools:visibility="visible"/> 91 92 <View 93 android:id="@+id/videocall_green_screen_background" 94 android:layout_width="match_parent" 95 android:layout_height="match_parent" 96 android:background="@color/videocall_overlay_background_color"/> 97 98 <include 99 layout="@layout/videocall_controls_surfaceview" 100 android:layout_width="match_parent" 101 android:layout_height="match_parent"/> 102 103 <FrameLayout 104 android:id="@+id/videocall_on_hold_banner" 105 android:layout_width="match_parent" 106 android:layout_height="wrap_content" 107 android:layout_gravity="top"/> 108 109</RelativeLayout> 110