私はアプリを開発中で、画像の上にビデオを均等に積み重ねています。あなたは添付された写真でそれを見ることができます。ビデオプレーヤーが写真のようにデバイスの下部にデフォルト設定するのはなぜですか?私はできるだけビデオの上にそれらを移動したい。この画面のための私のレイアウトは次のとおりです。私はビデオの上にビデオコントロールを移動することができるかどうビデオコントロールはデフォルトのデバイスの下部にあります
<?xml version="1.0" encoding="UTF-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/mobile_vforum_bg"
>
<VideoView
android:id="@+id/vidPlayer"
android:layout_width="320dip"
android:layout_height="240dip">
</VideoView>
<WebView
android:id="@+id/slideHolder"
android:layout_width="320dip"
android:layout_height="240dip"
android:layout_gravity="bottom">
</WebView>
<ListView
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:id="@+id/slideList"
android:background="#000000">
</ListView>
</FrameLayout>
誰もが知っていますか?
「VideoView」のドキュメントによると、「どのレイアウトマネージャでも使用できるように、ビデオから測定値を計算して処理します」。 'dip'に幅と高さを設定するのではなく、単純に' wrap_content'を使ってみましたか? – Squonk
コンテンツをラップするためにVideoViewの幅/高さを設定しようとしましたが、同じ動作が発生します。グーグル・グーグルでは、私が言うことができる長い一日になるだろう – Ronnie