title: Full screen videoview without stretching the video
body: <p>I wonder if I can get a way to let video run via videoview in full screen?</p>
  
  <p>I searched a lot and tried many ways such as:</p>
  
  <ol>
  <li><p>Apply theme in manifest:</p>
  
  <pre><code>android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
  </code></pre>
  
  <p>but that does not force the video to be in full screen.</p></li>
  <li><p>Apply in activity itself: </p>
  
  <pre><code>requestWindowFeature(Window.FEATURE_NO_TITLE);  
  getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,  
      WindowManager.LayoutParams.FLAG_FULLSCREEN);
  </code></pre>
  
  <p>also does not force the video to be in full screen.</p></li>
  </ol>
  
  <p>The only way force video to full screen is:</p>
  
  <pre><code>&lt;VideoView android:id="@+id/myvideoview"
      android:layout_width="fill_parent"
      android:layout_alignParentRight="true"
      android:layout_alignParentLeft="true" 
      android:layout_alignParentTop="true" 
      android:layout_alignParentBottom="true" 
      android:layout_height="fill_parent"&gt; 
  &lt;/VideoView&gt; 
  </code></pre>
  
  <p>This way it results in full screen video but it <strong>stretches the video itself</strong> (elongated video) ,</p>
  
  <p>I'm not applying this improper solution to my videoview, so is there is any way to do it without stretching the video?</p>
  
  <p><strong>Video Class:</strong></p>
  
  <pre><code>public class Video extends Activity {
      private VideoView myvid;
  
      @Override
      public void onCreate(Bundle icicle) {
          super.onCreate(icicle);
          setContentView(R.layout.main);
          myvid = (VideoView) findViewById(R.id.myvideoview);
          myvid.setVideoURI(Uri.parse("android.resource://" + getPackageName() 
              +"/"+R.raw.video_1));
          myvid.setMediaController(new MediaController(this));
          myvid.requestFocus();
          myvid.start();
      }
  }
  </code></pre>
  
  <p><strong>main.xml:</strong></p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" &gt;
  
      &lt;VideoView
          android:id="@+id/myvideoview"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>