<分区>
Possible Duplicate:
playback video full screen
我是 Android 应用程序开发的新手。我开发了一个应用程序,我在其中播放视频文件。可以正常使用,但是视频没有按要求全屏播放。
标签 android
<分区>
Possible Duplicate:
playback video full screen
我是 Android 应用程序开发的新手。我开发了一个应用程序,我在其中播放视频文件。可以正常使用,但是视频没有按要求全屏播放。
最佳答案
只需将以下 xml 用于您的视频 View ,它应该以全屏模式播放
<?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>
更多内容请看这篇文章: playback video full screen
关于android - 如何在android中全屏播放视频?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12948054/