I'm trying to put overlapping graphics on top of WebView that has
Flash content loaded into it. It seems Adobe Flash does not obey z
order as it renders on top of "Hello world!" text. Calling
overlappingView.bringToFront() did not help either. Any ideas?
I've tested with Android 2.2 on Samsung Galaxy S.
public class FlashTest extends Activity
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
WebView webview = (WebView)findViewById(R.id.flash);
WebSettings settings = webview.getSettings();
settings.setJavaScriptEnabled(true);
settings.setPluginState(PluginState.ON);
webview.loadUrl("http://some/page/with/flash");
}
}
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<WebView
android:id="@+id/flash"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
<TextView
android:id="@+id/overlappingView"
android:text="Hello world!"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignTop="@id/flash"
android:textSize="35pt"
/>
</RelativeLayout>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en