Flash z order seems to trump normal View z order, as well as GLSurfaceView z order. I suspect that this is not intentional, and is due to some low level optimization.
I'm not sure if this will help you, but I have found that you can render flash on top of flash, and z order will be respected. You can even render transparent flash on top of flash. To do this..... * Add Two WebViews in a FrameLayout * Load an SWF file in the first * Load this URL in the second: http://www.communitymx.com/content/source/E5141/wmodetrans.htm The bouncing purple ball will render over the other flash content! On Nov 2, 9:40 am, Tero Saarni <[email protected]> wrote: > 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

