1

私はアンドロイドの初心者です。webview に画像を重ねたい。Framelayout を webview と imageview で使用しています。正しく動作します。ただし、ビデオが webview で再生されると、画像は表示されません。プレーヤー内に画像を表示する方法は? 以下のコードについて言及しました。私を助けてください

<FrameLayout 
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:padding="0dp"
    android:layout_margin="0dp">

<WebView
    android:id="@+id/webview"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_margin="0dp"
    android:padding="0dp" 
    android:scaleType="center"/>

 <ImageView
     android:id="@+id/imageview"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:layout_gravity="center_horizontal|center"
     android:contentDescription="@string/webviewexample"
     android:src="@drawable/image"/>

</FrameLayout >
4

1 に答える 1