Buttons not displayed when using a SurfaceView
My gameloop class is extended from a SurfaceView
When I try to add a Button either programmaticly or thru XML it is not displayed - I have seen this question asked various times on the net but no suitable solutions. Some people have suggested sandwiching the SurfaceView in a FrameLayout but it has made no difference.

I'm surprised more people aren't using regular Buttons in their games and so this question hasn't been answered to death.

Here is my XML: (Engine = Game class that extends a surfaceview)

     <?xml version="1.0" encoding="utf-8"?>
    <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent">
     
	     <com.game.test.Engine
	     android:layout_width="fill_parent"
	     android:layout_height="fill_parent">
	     </com.game.test.Engine>

	<LinearLayout android:id="@+id/linearLayout1" android:layout_width="wrap_content" android:layout_height="wrap_content">
	      
	     <Button
		android:id="@+id/btnReset" 
		android:layout_width="80dp" 
		android:layout_height="40dp" 
		android:text="Reset"
		android:layout_alignParentRight="true"
		android:layout_alignParentBottom="true" 
		 android:textColor="#FFFFFF"
		android:background="@drawable/custom_button"
		></Button>
	 </LinearLayout> 
</FrameLayout>
Buttons not displayed when using a SurfaceView
===

My gameloop class is extended from a SurfaceView
When I try to add a Button either programmaticly or thru XML it is not displayed - I have seen this question asked various times on the net but no suitable solutions. Some people have suggested sandwiching the SurfaceView in a FrameLayout but it has made no difference.

I'm surprised more people aren't using regular Buttons in their games and so this question hasn't been answered to death.

Here is my XML: (Engine = Game class that extends a surfaceview)

     <?xml version="1.0" encoding="utf-8"?>
    <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent">
     
	     <com.game.test.Engine
	     android:layout_width="fill_parent"
	     android:layout_height="fill_parent">
	     </com.game.test.Engine>

	<LinearLayout android:id="@+id/linearLayout1" android:layout_width="wrap_content" android:layout_height="wrap_content">
	      
	     <Button
		android:id="@+id/btnReset" 
		android:layout_width="80dp" 
		android:layout_height="40dp" 
		android:text="Reset"
		android:layout_alignParentRight="true"
		android:layout_alignParentBottom="true" 
		 android:textColor="#FFFFFF"
		android:background="@drawable/custom_button"
		></Button>
	 </LinearLayout> 
</FrameLayout>