我试图拉伸视频以填充视频视图。目标是创建视图,在设备中看起来像第一张图片(就像它在布局预览中看到的一样)。拉伸填充VideoView,纵横比VideoView
这个问题的大部分答案都是指this link。
我试过这个,但我仍然没有填写视频视图。
这是我的布局代码:
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@drawable/search_gren_screen">
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
android:id="@+id/go_back"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_weight="1"
android:onClick="onclick"