I have a VideoView and when I show a video in it, it is shown on half the screen ... I found some examples of how they do it, but they also have a picture on the floor of the screen ... The VideoView element VideoView in XML has match_parent parameters. At first, I thought that the quality of the video itself was not sufficient, I installed another video, but they are exactly the same ... How to make the video show on a Full screen ?

    1 answer 1

    So try:

     <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <VideoView android:id="@+id/videoView" android:layout_width="match_parent" android:layout_alignParentRight="true" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:layout_alignParentBottom="true" android:layout_height="match_parent"> </VideoView> </RelativeLayout> 
    • does not help ... Does it work for you? - Aleksey Timoshchenko
    • The phone worked - Android Android
    • google yet: android manifest activity fullscreen notittle. Try to specify in the manifesto what will be consulted - Android Android
    • I just thought that the whole thing is that the video itself has such an aspect ratio that it cannot be shown in full screen when the phone is in the vertical position ... - Aleksey Timoshchenko