summaryrefslogtreecommitdiffstats
path: root/third_party/libwebrtc/examples/androidapp/res/layout/activity_call.xml
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/libwebrtc/examples/androidapp/res/layout/activity_call.xml')
-rw-r--r--third_party/libwebrtc/examples/androidapp/res/layout/activity_call.xml34
1 files changed, 34 insertions, 0 deletions
diff --git a/third_party/libwebrtc/examples/androidapp/res/layout/activity_call.xml b/third_party/libwebrtc/examples/androidapp/res/layout/activity_call.xml
new file mode 100644
index 0000000000..bf811426f3
--- /dev/null
+++ b/third_party/libwebrtc/examples/androidapp/res/layout/activity_call.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- tools:ignore is needed because lint thinks this can be replaced with a merge. Replacing this
+ with a merge causes the fullscreen SurfaceView not to be centered. -->
+<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"
+ tools:ignore="MergeRootFrame">
+
+ <org.webrtc.SurfaceViewRenderer
+ android:id="@+id/fullscreen_video_view"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center" />
+
+ <org.webrtc.SurfaceViewRenderer
+ android:id="@+id/pip_video_view"
+ android:layout_height="144dp"
+ android:layout_width="wrap_content"
+ android:layout_gravity="bottom|end"
+ android:layout_margin="16dp"/>
+
+ <FrameLayout
+ android:id="@+id/call_fragment_container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+ <FrameLayout
+ android:id="@+id/hud_fragment_container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+
+</FrameLayout>