[android-developers] SlidingDrawer - Setting height moves the view up

2012-01-24 Thread joaocruz04
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:



http://schemas.android.com/apk/res/
android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">

















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


Re: [android-developers] SlidingDrawer - Setting height moves the view up

2012-01-24 Thread YuviDroid
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  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:
>
>
> 
> http://schemas.android.com/apk/res/
> android"
>android:layout_width="wrap_content"
> android:layout_height="wrap_content">
>
>android:layout_height="200dip"
> android:layout_width="fill_parent"
>android:content="@+id/content" android:handle="@+id/handle">
>
> android:layout_height="wrap_content"
>android:layout_width="wrap_content"
> android:src="@drawable/
> ntrack">
>
> android:id="@+id/
> content"
>android:layout_width="fill_parent"
> android:orientation="vertical">
>
>android:layout_width="wrap_content"
> android:layout_height="wrap_content">
>
>
>android:onClick="ClickHandler"
> android:layout_width="wrap_content"
>
>  android:layout_height="wrap_content">
>
>
>
>
> 
>
> --
> 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  (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