1
나는 안드로이드에서 초보자입니다. 나는 webview에 이미지를 오버레이하고 싶다. 나는 webview와 imageview와 Framelayout를 사용합니다. 그것은 올바르게 작동합니다. 그러나 비디오가 웹 뷰에서 재생 될 때 이미지는 표시되지 않습니다. 플레이어 내부에 이미지를 표시하는 방법? 아래 코드를 언급했다. 제발 도와주세요오버레이 방법 imageview on 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 >
상대 레이아웃을 사용하십시오. – AppMobiGurmeet
잘 동작합니다. 웹 뷰에서는 비디오를 재생하지만 플레이어 내부에는 이미지가 표시되지 않지만 이미지는 플레이어 외부에 표시됩니다. 이미지를 표시 할 수 있습니다. 선수들? – dran
을 따르십시오. http://stackoverflow.com/questions/4901408/in-android-how-to-display-one-view-as-overlay-on-top-of-another-view – AppMobiGurmeet