player_remote.xml 1.28 KB
Newer Older
1 2 3 4
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
5
    android:background="@android:color/black"
6
    android:keepScreenOn="true" >
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

    <!--
     the double FrameLayout is necessary here to do cropping on the bottom right
     (which requires the surface not be centered), while keeping the result centered
    -->

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:fitsSystemWindows="false" >

        <FrameLayout
            android:id="@+id/remote_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/remote_player_surface"
                android:layout_width="1dp"
                android:layout_height="1dp"/>
            <SurfaceView
                android:id="@+id/remote_subtitles_surface"
                android:layout_width="1dp"
32
                android:layout_height="1dp" />
33 34
        </FrameLayout>
    </FrameLayout>
35
</RelativeLayout>