Are you setting fill_parent to the SlidingDrawer or RelativeLayout (in
your code there is 200dp, so I'm not sure)?
Anyway, since you are using a RelativeLayout you can try setting on the
SlidingDrawer android:layout_alignParentBottom=true. (maybe though you'll
need to set the RelativeLayout height to fill_parent).
On Tue, Jan 24, 2012 at 11:42 AM, joaocruz04 jtcru...@gmail.com wrote:
Hi,
i'm having a problem:
i've created a sliding drawer with a specific height, at the bottom of
the screen.
The problem is, when the height of the SlidingDrawer is set as
fill_parent, everything works great, but when i set the height as
for instance, 150dip, the SlidingDrawer moves to the top of the
screen..
is that a common issue? I can't seem to find any user with same
problem :S
My code btw:
?xml version=1.0 encoding=utf-8?
RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=wrap_content
android:layout_height=wrap_content
SlidingDrawer android:id=@+id/drawer
android:layout_height=200dip
android:layout_width=fill_parent
android:content=@+id/content android:handle=@+id/handle
ImageView android:id=@+id/handle
android:layout_height=wrap_content
android:layout_width=wrap_content
android:src=@drawable/
ntrack/ImageView
LinearLayout android:layout_height=fill_parent
android:id=@+id/
content
android:layout_width=fill_parent
android:orientation=vertical
TextView android:id=@+id/txt android:text=This
is some text
android:layout_width=wrap_content
android:layout_height=wrap_content
/TextView
Button android:id=@+id/btn android:text=Click
Me
android:onClick=ClickHandler
android:layout_width=wrap_content
android:layout_height=wrap_content/Button
/LinearLayout
/SlidingDrawer
/RelativeLayout
--
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
--
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net
--
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