Awesome. I'll give it a shot. Thanks so much. I am starting to get a handle
on the programming side of android now I need to start figuring out the
design aspect! Again thank you Mark for taking the time to enlighten me and
anyone else who comes across this!

-----Original Message-----
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Mark Murphy
Sent: Friday, April 30, 2010 6:01 PM
To: android-developers@googlegroups.com
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to