-1
我已經在相對佈局中實現了視頻視圖。我爲我的相對佈局設置了特定的layoutWidth
和layoutHeight
,並試圖爲視頻視圖匹配父項。從AutoResizing停止視頻視圖Android
我的問題是視頻視圖不會響應代碼。
這是我的XML視圖:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="800dp"
android:layout_height="600dp"
android:background="@drawable/background"
android:orientation="vertical" >
<!-- Header -->
<include
android:id="@+id/include1"
layout="@layout/video_menu_header" />
<VideoView
android:id="@+id/videoView1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/include1"
android:layout_centerHorizontal="true"
/>
</RelativeLayout>
爲什麼videoView不填充RelativeLayout的?
可能重複:[調整VideoView](http://stackoverflow.com/questions/4434027/android-videoview-orientation-change-with-buffered-video/4452597#4452597) – BlueSword
這個問題沒有明確說明。 「不會迴應代碼」並不是真的有幫助。說明它在做什麼,以及你期望它做什麼。 – jww