如何显示全屏幕宽度的视频.
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<VideoView
android:layout_width="fill_parent"
android:layout_height="200dp"
android:id="@+id/video_view"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_gravity="center"
/>
</LinearLayout>这里是附加的图像

发布于 2016-05-03 11:29:27
使用RelativeLayout
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<VideoView
android:layout_width="fill_parent"
android:layout_height="200dp"
android:id="@+id/video_view"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_gravity="center"
/>
</RelativeLayout>发布于 2016-05-03 11:42:31
在Android文件中添加屏幕方向视图,并将
android:layout_height="200dp"至
android:layout_height="fill_parent"并使父母成为RelativeLayout
https://stackoverflow.com/questions/37002793
复制相似问题