ビデオビューでビデオを表示しています:
私のXMLでは:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:gravity="center"
android:layout_height="fill_parent">
<VideoView
android:layout_gravity="center"
android:id="@+id/videoview_player"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
これは完璧に機能するように見えました。ビデオのサイズが自動的に変更されるため、画面がいっぱいになりますが、ビデオのアスペクト比は維持されます。
しかし、タブレットでは、縦向きで 30 ~ 60 秒ほどすると、ビデオがフルスクリーンに伸びます。(縦横比を維持するのではなく、高さを伸ばします)
このような: