我制作了一个视频视图,在屏幕底部还有另一个相关布局。在模拟器中,它显示得很好,但是当我启动应用程序时,它不会显示。现在当我启动它时,它显示出这样的布局。我在代码后面做错了什么吗?
模拟器中的图像
启动应用程序时的布局
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<VideoView
android:id="@+id/video_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/buttonsLayout" />
<RelativeLayout
android:id="@+id/buttonsLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="#404040"
android:orientation="horizontal">
<ImageView
android:id="@+id/button_accept_video"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_margin="10dp"
android:src="@mipmap/accept" />
<ImageView
android:id="@+id/button_reject_video"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_margin="10dp"
android:src="@mipmap/reject" />
</RelativeLayout>
</RelativeLayout>