2

Possible Duplicate:
playback video full screen

I am new to Android application development. I developed an application, in which I play a video file. It is working properly, but the video is not enabled to be played in full screen as required.

karel
  • 4,637
  • 41
  • 42
  • 47
user1632949
  • 605
  • 3
  • 9
  • 18
  • http://stackoverflow.com/questions/991764/hiding-title-in-a-fullscreen-mode try this link – Ashwani Oct 18 '12 at 06:03
  • Refer the below link [playback video full screen][1] [1]: http://stackoverflow.com/questions/1574654/playback-video-full-screen – jagan g Oct 18 '12 at 06:15

1 Answers1

10

Just use the following xml for your video view and it should play in fullscreen mode

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >
    <VideoView android:id="@+id/myvideoview"
        android:layout_width="fill_parent"
        android:layout_alignParentRight="true"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:layout_alignParentBottom="true"
        android:layout_height="fill_parent">
    </VideoView>
</RelativeLayout>

See this thread for more: playback video full screen

Community
  • 1
  • 1
Anup Cowkur
  • 20,093
  • 6
  • 50
  • 82