80,350
社区成员
发帖
与我相关
我的任务
分享
<RelativeLayout 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:context=".MainActivity">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:orientation="horizontal">
<FrameLayout
android:id="@+id/frameLayout1"
android:layout_width="100dp"
android:layout_height="200dp"
android:layout_centerHorizontal="true"
android:layout_gravity="center|bottom"
android:background="#FF000000"
android:backgroundTintMode="src_atop">
<SurfaceView
android:id="@+id/Player1"
android:layout_width="200dp"
android:layout_height="300dp"
android:layout_marginLeft="-50dp"
android:layout_marginTop="-50dp" />
</FrameLayout>
<FrameLayout
android:id="@+id/frameLayout2"
android:layout_width="100dp"
android:layout_height="200dp"
android:layout_centerHorizontal="true"
android:layout_gravity="center|bottom"
android:layout_marginLeft="2dp"
android:background="#FF000000">
<SurfaceView
android:id="@+id/Player2"
android:layout_width="200dp"
android:layout_height="300dp"
android:layout_marginLeft="-50dp"
android:layout_marginTop="-50dp" />
</FrameLayout>
<FrameLayout
android:id="@+id/frameLayout3"
android:layout_width="100dp"
android:layout_height="200dp"
android:layout_centerHorizontal="true"
android:layout_gravity="center|bottom"
android:layout_marginLeft="2dp"
android:background="#FF000000">
<SurfaceView
android:id="@+id/Player3"
android:layout_width="200dp"
android:layout_height="300dp"
android:layout_marginLeft="-50dp"
android:layout_marginTop="-50dp" />
</FrameLayout>
</LinearLayout>
<Button
android:id="@+id/btnPlay"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="10dp"
android:text="Play" />
</RelativeLayout>