Am using Video view to play the MP4 video files from external card. when i rotate my android device video not showing full screen. am working on android 4.4 normal including the ui output screen below
when i rotate phone
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/video"
android:orientation="vertical"
android:background="@drawable/planebackground">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/videotoolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />
</android.support.design.widget.AppBarLayout>
<RelativeLayout
android:id="@+id/layout1"
android:layout_width="wrap_content"
android:layout_height="200dp"
>
<VideoView
android:id="@+id/VideoView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/layout1"
android:weightSum="1">
<TextView
android:text="About Course"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:textSize="16sp"
android:layout_marginLeft="19dp"
android:layout_marginStart="19dp"
android:layout_marginTop="70dp"
android:id="@+id/aboutcuz" />
<TextView
android:text="TextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="48dp"
android:id="@+id/about_course_text"
android:fontFamily="Arial"
android:layout_below="@+id/aboutcuz"
android:layout_alignLeft="@+id/aboutcuz"
android:layout_alignStart="@+id/aboutcuz"
android:layout_marginLeft="43dp"
android:layout_marginStart="43dp"
android:gravity="center"
/>
<TextView
android:text="TextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:lines="2"
android:scrollHorizontally="true"
android:ellipsize="end"
android:id="@+id/coursenamev"
android:textSize="18sp"
android:layout_alignParentTop="true"
android:layout_alignLeft="@+id/aboutcuz"
android:layout_alignStart="@+id/aboutcuz"
android:layout_marginTop="18dp" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="60dp"
android:background="@android:color/darker_gray"/>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_below="@+id/aboutcuz"
android:layout_marginTop="10dp"
android:background="@android:color/darker_gray"/>
</RelativeLayout>
</LinearLayout>
is there any layout issue in my code