title: Stretch to fill VideoView, aspect ratio of VideoView
body: <p>I try to stretch video in aim to fill videoview. The target is to create view that in device look like the first pic (like it look in layout preview). </p>
  
  <p>Most of the answers to this questions refer to <a href="http://blog.kasenlam.com/2012/02/android-how-to-stretch-video-to-fill.html" rel="noreferrer">this link</a>. </p>
  
  <p>I tried this but I still didn't fill video view. </p>
  
  <p>This my layout code : </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" 
      android:background="@drawable/search_gren_screen"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal" &gt;
  
          &lt;Button
              android:id="@+id/go_back"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_gravity="center"
              android:layout_weight="1"
              android:onClick="onclick"
              android:text="Try again" /&gt;
  
          &lt;Button
              android:id="@+id/back_to_pick_song"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_weight="1"
              android:text="Select another song" 
              android:onClick="onclick" /&gt;
  
          &lt;Button
              android:id="@+id/btn_continue"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_gravity="center"
              android:layout_weight="1"
              android:onClick="onclick"
              android:text="Amazing, continue!" /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;FrameLayout 
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"&gt;
      &lt;VideoView 
          android:id="@+id/videoView1"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:layout_alignParentBottom="true"
          android:layout_alignParentLeft="true"
          android:layout_alignParentRight="true"
          android:layout_alignParentTop="true"
          android:layout_gravity="center" /&gt;
      &lt;/FrameLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Here you have a preview of my declared layout: </p>
  
  <p><img src="https://i.stack.imgur.com/batJo.png" alt="enter image description here"></p>
  
  <p>However, the result on the device is different:</p>
  
  <p><img src="https://i.stack.imgur.com/wlN8t.png" alt="enter image description here"></p>