Look at the SurfaceView Overlay example in the API demo samples >From surface_view_overlay.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <!-- Here is where we put the SurfaceView, in a frame so that we can stack other views on top of it. --> <FrameLayout android:layout_width="match_parent" android:layout_height="0px" android:layout_weight="1"> <android.opengl.GLSurfaceView android:id="@+id/glsurfaceview" android:layout_width="match_parent" android:layout_height="match_parent" /> <LinearLayout android:id="@+id/hidecontainer" android:orientation="vertical" android:visibility="gone" android:background="@drawable/translucent_background" android:gravity="center" android:layout_width="match_parent" android:layout_height="match_parent"> <Button android:id="@+id/hideme1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:visibility="gone" android:text="@string/hide_me"/> <Button android:id="@+id/hideme2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:visibility="gone" android:text="@string/hide_me"/> </LinearLayout> </FrameLayout> <LinearLayout On Thursday, May 24, 2012 7:18:31 PM UTC+1, michael wrote: > > Hi, I'm working on a project where I'm displaying a room using > GLSurfaceView and Renderer, > and I want to display a menu when user click on that room (anywhere) > by using onTouchEvent. > So please help me with the code needed to put in the case of > ACTION_DOWN. -- 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

