0
場合でも、私は別のXML内フルスクリーンビデオVideoViewが内側(includeを使用)異なるXMLの
<main.xml
<include layout = "@layout/subLayou1"/> >
</main>
<subLayout1.xml
<include layout = "@layout/subLayout2"/> >
</subLayout1>
<subLayout2.xml
<VideoView
android:id="@+id/videoView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_alignParentTop="true"
android:layout_centerInParent="true"
android:background="@android:color/transparent" />
<Button for full screen />
</subLayout2>
ですが、私はsubLayout2でこのvideoviewが時に全画面表示をしたいXML内部VideoViewを持っていますフルスクリーンのボタンをクリックしてください。私を助けてください!あなたはsublayout
android:layout_width="match_parent"
android:layout_height="match_parent"
ため、以下の幅、高さSublayout1を入れているあなたのコードで