Hi,

I'm having a problem using the SlidingDrawer widget along with a
GLSurfaceView as the View that is 'underneath' the drawer (ie. when
the drawer opens it should cover the GLSurfaceView in the same way the
main applications drawer on the home screen covers the home screen).

What happens is that the SlidingDrawer appears to slide *under* the
GLSurfaceView and not on top of it. I have tried using bringToFront()
on the SlidingDrawer to force it to be on top of the GLSurefaceView
but it does not help. Neither does calling onPause() on the
GLSurfaceView before sliding.

My layout xml file is as follows:

<?xml version="1.0" encoding="utf-8"?>

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >

    <GLSurfaceView
        android:id="@+id/glview"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    />

    <SlidingDrawer
     android:id="@+id/drawer"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     android:orientation="vertical"
     android:bottomOffset="7px"

     android:handle="@+id/handle"
     android:content="@+id/content">

     <ImageView
         android:id="@id/handle"
         android:focusable="true"
         android:clickable="true"
         android:scaleType="center"
         android:src="@drawable/icon"
         android:layout_width="fill_parent"
         android:layout_height="44dip" />

     <ImageView
         android:id="@id/content"
         android:src="@drawable/robot"
         android:layout_width="fill_parent"
         android:layout_height="fill_parent" />

 </SlidingDrawer>

</FrameLayout>

Any thoughts?

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to