Reputation: 2591
The problem I am about to describe is probably already referred to indirectly in many posts (so I can see), however I don't seem to find the answer I look for.
Here's what I have:
An android view with native UI components at the top of the screen, and a webview covering the rest of the screen.
The webView displays a web page containing Flash clips.
When I scroll the webpage it seems that the flash clips are separate from the WebView spanning beyond the boundaries of the hosting WebView. They actually overlap with the native UI controls (cover them).
How can I prevent this from happening?
Thanks for an experienced advice.
Upvotes: 0
Views: 573
Reputation: 41
Override addView in WebView.java to change the zorder of surfaceview/flash; File: webkit/WebView.java
@Override
public void addView(View child, int index) {
if (child.getClass().getName().equals("com.adobe.flashplayer.FlashPaintSurface"))
{
((SurfaceView) child).setZOrderOnTop(false);
}
super.addView(child, index);
}
Upvotes: 1