I seem to be running into the same issue here. See I am wondering if the
fact that my listview isn't populated at start up if that has something to
do with it. It takes a few seconds for the data in the listview to be pulled
down and populated. Could this be affected the sliding drawer? If so is
there a way to work around this? Here is the new XML:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id="@+id/widget84"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android";
>

<ListView
android:id="@+id/lvReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/TideLoadMessage"
android:layout_alignParentLeft="true"
>
</ListView>
<SlidingDrawer
     android:id="@+id/drawer"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
         android:layout_below="@+id/lvReport"
     android:handle="@+id/handle"
     android:content="@+id/content">

     <ImageView
         android:id="@id/handle"
         android:layout_width="88dip"
         android:layout_height="44dip"
         android:src="@drawable/icon"
          />

     <LinearLayout android:layout_width="wrap_content"
             android:layout_height="fill_parent" 
             android:id="@id/content"
             android:orientation="vertical" 
             android:padding="10dip">

   <Button android:text="Test1" 
           android:id="@+id/Button01"
        android:layout_width="fill_parent" 
        android:layout_height="wrap_content" />

   <Button android:text="Test2" 
           android:id="@+id/Button02"
        android:layout_width="fill_parent" 
        android:layout_height="wrap_content" />

   <Button android:text="Test3" 
           android:id="@+id/Button03"
        android:layout_width="fill_parent" 
        android:layout_height="wrap_content" />


  </LinearLayout>

 </SlidingDrawer>
<TextView
android:id="@+id/TideLoadMessage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Loading Report, Please Wait..."
android:textSize="12sp"
android:layout_below="@+id/tvStationName"
android:layout_toRightOf="@+id/widget85"
>
</TextView>
<TextView
android:id="@+id/tvStationName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView"
android:textSize="12sp"
android:layout_alignTop="@+id/widget89"
android:layout_alignLeft="@+id/tvReportLength"
>
</TextView>
<TextView
android:id="@+id/widget89"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Station Name:"
android:textSize="12sp"
android:layout_below="@+id/tvStationId"
android:layout_alignParentLeft="true"
>
</TextView>
<TextView
android:id="@+id/tvStationId"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView"
android:textSize="12sp"
android:layout_alignParentTop="true"
android:layout_toRightOf="@+id/widget87"
>
</TextView>
<TextView
android:id="@+id/widget87"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ID:"
android:textSize="12sp"
android:layout_alignParentTop="true"
android:layout_toRightOf="@+id/tvReportLength"
>
</TextView>
<TextView
android:id="@+id/tvReportLength"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1 Day"
android:textSize="12sp"
android:layout_alignParentTop="true"
android:layout_toRightOf="@+id/widget85"
>
</TextView>
<TextView
android:id="@+id/widget85"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Report Length:"
android:textSize="12sp"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
>
</TextView>
</RelativeLayout>

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Mark Murphy
Sent: Friday, April 30, 2010 6:01 PM
To: [email protected]
Subject: Re: [android-developers] Sliding Drawer question

Tommy wrote:
> Hey everyone. I am trying to use a sliding drawer that will display a
> list of options. I need this to expand over the current ListView on
> the page but I can only get it to expand until it hits the bottom of
> the listview which isn't nearly enough room to display any options. Is
> there a setting I am missing to make it roll over the current objects
> on the page or am I using this widget incorrectly? Below my XML:
> 
> <?xml version="1.0" encoding="utf-8"?>
> <LinearLayout android:id="@+id/linear"
> android:layout_width="fill_parent" android:layout_height="fill_parent"
> android:orientation="vertical" xmlns:android="http://
> schemas.android.com/apk/res/android">
> 
> <TableLayout
> android:id="@+id/widget36"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:padding="3px"
> android:orientation="vertical"
> <TableRow
> android:id="@+id/widget37"
> android:layout_width="fill_parent"
> android:layout_height="wrap_content"
> android:orientation="horizontal"
> <TextView
> android:id="@+id/widget38"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:padding="1px"
> android:text="Report Length:"
> android:textSize="12sp"
> </TextView>
> <TextView
> android:id="@+id/tvReportLength"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:textSize="12sp"
> </TextView>
> <TextView
> android:id="@+id/tvReportLenght"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:padding="1px"
> android:text="1 day"
> android:textSize="12sp"
> </TextView>
> <TextView
> android:id="@+id/widget50"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:padding="1px"
> android:text="ID:"
> android:textSize="12sp"
> </TextView>
> <TextView
> android:id="@+id/tvStationId"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:padding="1px"
> android:text="TextView"
> android:textSize="12sp"
> </TextView>
> </TableRow>
> </TableLayout>
> <TableLayout
> android:id="@+id/widget40"
> android:layout_width="fill_parent"
> android:layout_height="wrap_content"
> android:padding="3px"
> android:orientation="vertical"
> <TableRow
> android:id="@+id/widget45"
> android:layout_width="fill_parent"
> android:layout_height="wrap_content"
> android:orientation="horizontal"
> <TextView
> android:id="@+id/widget51"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:padding="1px"
> android:text="Station Name:"
> android:textSize="12sp"
> </TextView>
> <TextView
> android:id="@+id/tvStationName"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:padding="1px"
> android:text="TextView"
> android:textSize="12sp"
> </TextView>
> 
> </TableRow>
> 
> </TableLayout>
> 
> <TextView android:layout_width="wrap_content"
> android:layout_height="wrap_content" android:id="@+id/tvNoTide"
> android:text="The NOAA has currently removed this tide report for this
> station. Please check back shortly to see if new tide tables have been
> posted. You may also check other location near his one or check a
> Harmonic station from the statin Listings."
> android:visibility="gone"></TextView>
> <TextView android:id="@+id/TideLoadMessage"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content" android:layout_gravity="center"
> android:text="Loading Report, Please wait..."></TextView>
> 
> <ListView
> android:id="@+id/lvReport"
> android:layout_width="fill_parent"
> android:layout_height="wrap_content"
> android:padding="3px"
> </ListView>
> <FrameLayout android:id="@+id/frame"
> 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:handle="@+id/handle"
>      android:content="@+id/content">
> 
>      <ImageView
>          android:id="@id/handle"
>          android:layout_width="88dip"
>          android:layout_height="44dip"
>          android:src="@drawable/icon"
>           />
> 
>      <LinearLayout android:layout_width="wrap_content"
>              android:layout_height="wrap_content"
>              android:id="@id/content"
>              android:orientation="vertical"
>              android:padding="10dip">
> 
>    <Button android:text="Test1"
>            android:id="@+id/Button01"
>         android:layout_width="fill_parent"
>         android:layout_height="wrap_content" />
> 
>    <Button android:text="Test2"
>            android:id="@+id/Button02"
>         android:layout_width="fill_parent"
>         android:layout_height="wrap_content" />
> 
>    <Button android:text="Test3"
>            android:id="@+id/Button03"
>         android:layout_width="fill_parent"
>         android:layout_height="wrap_content" />
> 
> 
>   </LinearLayout>
> 
>  </SlidingDrawer>
>  </FrameLayout>
> </LinearLayout>

Get rid of the LinearLayout, get rid of the FrameLayout, and use a
RelativeLayout as your root. Put your ListView as the first child of the
RelativeLayout, and your SlidingDrawer (and its contents) as the second
child. This should allow your drawer to open over top of the ListView.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

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

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