Search code examples
androidandroid-layoutandroid-orientationandroid-videoview

Android VideoView orientation change


I am having a VideoView playing video on my Android app. When I try it on the portrait orientation, the video fills the screen. But when I change the orientation to landscape, the video takes up only half the screen space. I am using FILL_PARENT, FILL_PARENT as the layout parameters.

Is there a way I can have the video fill the screen in both orientations?


Solution

  • Your video might be just too small. You can center it in parent to make it look better. Or try to request bigger video from your provider.