Stretch pour remplir VideoView, rapport d'aspect de VideoView

J'essaie d'étirer la vidéo dans le but de remplir videoview. L'objectif est de créer point de vue que dans le dispositif regarder comme le premier pic (comme il regarde dans la mise en page de prévisualisation).

La plupart des réponses à ces questions, reportez-vous à ce lien.

J'ai essayé ceci mais je ne l'ai toujours pas de remplissage d'affichage de la vidéo.

Ce ma mise en page de code :

<?xml version="1.0" encoding="utf-8"?>
<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">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal" >

        <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" />

        <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" />

        <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!" />
    </LinearLayout>

    <FrameLayout 
      android:layout_width="fill_parent"
      android:layout_height="fill_parent">
    <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" />
    </FrameLayout>
</LinearLayout>

Vous avez ici un aperçu de mon déclarée mise en page:

Stretch pour remplir VideoView, rapport d'aspect de VideoView

Cependant, le résultat sur l'appareil est différent:

Stretch pour remplir VideoView, rapport d'aspect de VideoView

source d'informationauteur idan