blob: c672466759f3a8e0dbbb3a07e77bc423df755c9f [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2017 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:background="@android:color/black"
android:keepScreenOn="true">
<SurfaceView
android:id="@+id/videocall_video_remote"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:importantForAccessibility="no"/>
<TextView
android:gravity="center"
android:id="@+id/videocall_remote_video_off"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:accessibilityTraversalBefore="@+id/videocall_speaker_button"
android:drawablePadding="8dp"
android:drawableTop="@drawable/quantum_ic_videocam_off_white_36"
android:drawableTint="@color/videocall_camera_off_tint"
android:padding="64dp"
android:text="@string/videocall_remote_video_off"
android:textAppearance="@style/Dialer.Incall.TextAppearance"
android:visibility="gone"
tools:visibility="visible"/>
<View
android:id="@+id/videocall_fullscreen_background"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/videocall_overlay_background_color"/>
<FrameLayout
style="@style/VideoPreviewHolder"
android:id="@+id/videocall_preview_root">
<SurfaceView
android:id="@+id/videocall_video_preview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:importantForAccessibility="no"/>
<ImageView
android:id="@+id/videocall_video_preview_off_overlay"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:scaleType="center"
android:src="@drawable/quantum_ic_videocam_off_white_24"
android:tint="@color/videocall_camera_off_tint"
android:tintMode="src_in"
android:visibility="gone"
android:importantForAccessibility="no"
tools:visibility="visible"/>
<ImageView
android:id="@+id/videocall_video_preview_mute_overlay"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_gravity="center"
android:background="@drawable/videocall_background_circle_white"
android:contentDescription="@string/incall_content_description_muted"
android:scaleType="center"
android:src="@drawable/quantum_ic_mic_off_black_24"
android:visibility="gone"
tools:visibility="visible"/>
</FrameLayout>
<View
android:id="@+id/videocall_green_screen_background"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/videocall_overlay_background_color"/>
<include
layout="@layout/videocall_controls_surfaceview"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<FrameLayout
android:id="@+id/videocall_on_hold_banner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"/>
</FrameLayout>