title: Make Video play in landscape and full screen
body: <p>Working on an app that have <code>VideoView</code>. But the video is in portrait and not full screen. I want to play it in landscape and if possible full screen. This is my code in xml</p>
  
  <pre><code>    &lt;VideoView
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:id="@+id/FBG"
      android:layout_alignParentTop="true"
      android:layout_alignParentEnd="true"
      android:layout_alignParentStart="true"/&gt;
  </code></pre>
  
  <p>and this code in the class</p>
  
  <pre><code>public class lectFbg extends AppCompatActivity {
  VideoView video;
  ProgressDialog pDialog;
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.lect_fbg);
  
      video = (VideoView) findViewById(R.id.FBG);
      String uriPath = "android.resource://" + getPackageName() + "/" + R.raw.tugs4;
      Uri uri = Uri.parse(uriPath);
      /*video.setVideoURI(uri);*/
      pDialog = new ProgressDialog(this);
      // Set progressbar title
      pDialog.setTitle("FBG");
      // Set progressbar message
      pDialog.setMessage("Buffering...");
      pDialog.setIndeterminate(false);
      pDialog.setCancelable(false);
      // Show progressbar
  
  
      try {
          // Start the MediaController
          MediaController mediacontroller = new MediaController(
                  this);
          mediacontroller.setAnchorView(video);
          // Get the URL from String VideoURL
          video.setMediaController(mediacontroller);
          video.setVideoURI(uri);
  
      } catch (Exception e) {
          Log.e("Error", e.getMessage());
          e.printStackTrace();
      }
  
      video.requestFocus();
      video.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
          // Close the progress bar and play the video
          public void onPrepared(MediaPlayer mp) {
              mp.setAudioStreamType(AudioManager.STREAM_MUSIC);
              mp.setVolume(50f,50f);
              pDialog.dismiss();
              video.start();
          }
  
      });
  
  
      video.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {
  
  
          public void onCompletion(MediaPlayer mp) {
              Intent in = new Intent (getApplicationContext(),lectureFBG.class);
              startActivity(in);
           }
        });
      }
   }
  </code></pre>