I have implemented a video view within a relative layout. I have set specific layoutWidth
and layoutHeight
for my relative layout and am trying to match parent for the video view.
My problem is the video view wont respond to the code.
This is my XML view:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="800dp"
android:layout_height="600dp"
android:background="@drawable/background"
android:orientation="vertical" >
<!-- Header -->
<include
android:id="@+id/include1"
layout="@layout/video_menu_header" />
<VideoView
android:id="@+id/videoView1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/include1"
android:layout_centerHorizontal="true"
/>
</RelativeLayout>
Why the videoView does not fill the RelativeLayout?