Center video at center of screen - Videoview Android
<p>I have a video view, that plays a certain video this is his xml </p>

<pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal" android:layout_width="match_parent"
    android:layout_height="match_parent"&gt;



Some other views


    &lt;VideoView
        android:id = "@+id/video"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_gravity="center"
        android:layout_alignParentStart="true"
        /&gt;



&lt;/RelativeLayout&gt;
</code></pre>

<p>I am trying to center the video in it, yet when ever I play the video,
It does not appear at the center, and the location changes a bit depends on the video, how do you center it? </p>