title: Video not centered In any layout [Android]
body: <p>I'm trying to center a video played in a Fullscreen activity but whatever parameter i place in whatever layout doesn't seem to work</p>
  
  <p>This is the piece of my manifest:</p>
  
  <pre><code>&lt;activity
      android:name=".VideoActivity"
      android:label="@string/app_name"
      android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt;
  &lt;/activity&gt;
  </code></pre>
  
  <p>My video_layout.xml</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="fill_parent"
     android:layout_height="fill_parent"&gt;
  
    &lt;VideoView 
      android:id="@+id/videoView" 
      android:gravity="center"
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>And the activity in case you need it</p>
  
  <pre><code>public class VideoActivity extends Activity {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.video_layout);
  
      VideoView videoHolder = new VideoView(this);
      setContentView(videoHolder);
      Uri video = Uri.parse("android.resource://" + getPackageName() + "/"+ R.raw.video);
      videoHolder.setVideoURI(video);
      videoHolder.start();
  
      videoHolder.setOnCompletionListener(new OnCompletionListener() {
          public void onCompletion(MediaPlayer mp) {
              jump();
          }
      });
  }   
  
  private void jump() {
      if(isFinishing())
        return;
       finish();
       pd.dismiss();
      }
   }
  </code></pre>
  
  <p>I've tried with FrameLayou, RelativeLayout, LinearLayout</p>
  
  <p>centering gravity, centering layout_gravity
  and it keeps displaying it on top of the window in portrait and in the left-bottom corner in landscape</p>
  
  <p>I'd put a photo but I lack of reputation
  Thanks in advance</p>