title: Video view is not full screen in landscape mode
body: <p>I am using a video view designed with xml. This video is full screen in Portrait mode but when it turns to the landscape mode, it is left aligned and both width and height are wrapped instead of full screen.</p>
  
  <p>I referred these, but still no solution for this.</p>
  
  <p><a href="https://stackoverflow.com/questions/10518283/fullscreen-videoview-isnt-centered">Fullscreen VideoView isn&#39;t Centered</a></p>
  
  <p><a href="https://stackoverflow.com/questions/3776254/android-video-view-in-fullscreen">Android-Video View in Fullscreen</a></p>
  
  <p>Any one knows the answer for this?</p>
  
  <p><strong>Update:</strong> Here is my xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent" android:layout_height="fill_parent"&gt;
  
  
  &lt;VideoView android:id="@+id/youtubewebView"
      android:layout_width="fill_parent" android:layout_height="fill_parent"
      android:layout_alignParentLeft="true" android:layout_alignParentTop="true"
      android:layout_alignParentRight="true"
      android:layout_alignParentBottom="true" android:layout_gravity="fill" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p><strong>Update 2:</strong></p>
  
  <pre><code>public class VideoStreamingActivity extends Activity {
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
      final VideoView videoView = (VideoView)findViewById(R.id.your_video_view);
      String videoUrl = "http://www.pocketjourney.com/downloads/pj/video/famous.3gp";
      try {
      Uri uri = Uri.parse(videoUrl);
      videoView.setVideoURI(uri);
      videoView.setMediaController(new MediaController(this));
      videoView.requestFocus();
      //videoView.start();
      videoView.setOnErrorListener(new OnErrorListener() {
  
          @Override
          public boolean onError(MediaPlayer arg0, int arg1, int arg2) {
              Toast.makeText(getApplicationContext(), "error", Toast.LENGTH_SHORT).show();
              return true;
          }
      });
  
      }catch (Exception e) {
          e.printStackTrace();
      }
  
      videoView.setOnPreparedListener(new OnPreparedListener() {
  
          public void onPrepared(MediaPlayer mp) {
              videoView.start();
          }
      });
  
  }
  
  @Override
  protected void onPause() {
      Toast.makeText(getApplicationContext(), "pause", Toast.LENGTH_SHORT).show();
      super.onPause();
  }
  
  @Override
  protected void onRestart() {
      Toast.makeText(getApplicationContext(), "restart", Toast.LENGTH_SHORT).show();
      super.onRestart();
  }
  
  @Override
  protected void onResume() {
      Toast.makeText(getApplicationContext(), "resume", Toast.LENGTH_SHORT).show();
      super.onResume();
  }
  </code></pre>
  
  <p>}</p>