在VideoView Android中播放视频时,VideoView的屏幕大小正在改变
当我在视频视图中播放视频时,但在视频开始播放时,高度会自动降低(chanded)。视频视图位于相对布局内 我有急事。在VideoView Android中播放视频时,VideoView的屏幕大小正在改变,android,media-player,Android,Media Player,当我在视频视图中播放视频时,但在视频开始播放时,高度会自动降低(chanded)。视频视图位于相对布局内 我有急事。 提前谢谢。您好,我也遇到了这个问题,但我的设置如下: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent"
提前谢谢。您好,我也遇到了这个问题,但我的设置如下:
<?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"
android:orientation="horizontal" >
<VideoView
android:id="@+id/videoview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true" >
</VideoView>
</RelativeLayout>
您好,我也遇到了这个问题,但我的设置如下:
<?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"
android:orientation="horizontal" >
<VideoView
android:id="@+id/videoview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true" >
</VideoView>
</RelativeLayout>
因为纵横比与屏幕上的不同。再把它用某种布局包装起来。很有魅力!因为纵横比不同于屏幕上的纵横比。再把它用某种布局包装起来。很有魅力!