[Android] Video remote: FrameLayout → VLCVideoLayout

Geoffrey Métais git at videolan.org
Tue Jan 29 13:07:52 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jan 29 09:56:44 2019 +0100| [6162030005d8b45df0f4ac7a1f0f3a6342654b62] | committer: Geoffrey Métais

Video remote: FrameLayout → VLCVideoLayout

> https://code.videolan.org/videolan/vlc-android/commit/6162030005d8b45df0f4ac7a1f0f3a6342654b62
---

 vlc-android/res/layout/player_remote_control.xml | 24 +++---------------------
 1 file changed, 3 insertions(+), 21 deletions(-)

diff --git a/vlc-android/res/layout/player_remote_control.xml b/vlc-android/res/layout/player_remote_control.xml
index 8b6be569b..d5c4c0038 100644
--- a/vlc-android/res/layout/player_remote_control.xml
+++ b/vlc-android/res/layout/player_remote_control.xml
@@ -8,29 +8,11 @@
      (which requires the surface not be centered), while keeping the result centered
     -->
 
-    <FrameLayout
+    <org.videolan.libvlc.util.VLCVideoLayout
+        android:id="@+id/video_layout"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
-        android:fitsSystemWindows="false" >
-
-        <FrameLayout
-            android:id="@+id/player_surface_frame"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_gravity="center"
-            android:foregroundGravity="clip_horizontal|clip_vertical" >
-
-            <SurfaceView
-                android:id="@+id/player_surface"
-                android:layout_width="1dp"
-                android:layout_height="1dp" />
-
-            <SurfaceView
-                android:id="@+id/subtitles_surface"
-                android:layout_width="1dp"
-                android:layout_height="1dp" />
-        </FrameLayout>
-    </FrameLayout>
+        android:fitsSystemWindows="false"/>
 
     <RelativeLayout
         android:id="@+id/player_overlay_background"



More information about the Android mailing list