Home » Android » stretch video inside video view

stretch video inside video view

Posted by: admin November 1, 2017 Leave a comment

Questions:

i have this 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="wrap_content">


    <VideoView
        android:layout_width="match_parent"
        android:layout_height="248dp"
        android:layout_marginTop="3dp"/>

</LinearLayout>

the problem the video is not filling the width of the video view !,How to make the video stretches to fill the width of the videoview

Answers: