VideoView full screen in Android using XML
<?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">
<VideoView android:id="@+id/videoViewRelative"
android:layout_alignParentTop="true"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</VideoView>
</RelativeLayout>
VideoView full screen in Android Programmatically
VideoView videoview=new VideoView(getContext());
RelativeLayout.LayoutParams rlvideo=new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT,RelativeLayout.LayoutParams.MATCH_PARENT);
rlvideo.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
rlvideo.addRule(RelativeLayout.ALIGN_PARENT_LEFT);
rlvideo.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
rlvideo.addRule(RelativeLayout.ALIGN_PARENT_TOP);
videoview.setLayoutParams(rlvideo);