layout margin = -10sp

Careful with negative margins as there's some gotchas when working
with Froyo compared to Eclair and earlier versions:

http://code.google.com/p/android/issues/detail?id=9280

On Jul 7, 12:21 pm, Anthoni <anthoni.gard...@gmail.com> wrote:
> OK, so I've partially worked it out. Using the code below my image
> scrolls upwards by a set amount BUT it also chops that amount off the
> top of the image. It looks as though the image is sliding underneath
> the view above it, which is not what I want at all.
>
> Can you perhaps change the Z-Order of an ImageView so it rests above
> everything else ?
> Would I need to post my layout xml, perhaps that is at fault ?
>
> [code]
> TranslateAnimation animation = new TranslateAnimation
>             (
>                 Animation.ABSOLUTE, 0.0f, Animation.ABSOLUTE, 0.0f,
>                 Animation.ABSOLUTE, 0.0f, Animation.ABSOLUTE,
> v.getLayoutParams().height - 10
>             );
>             animation.setDuration(500);
>             animation.setFillAfter(true);
>             v.startAnimation(animation);
> [/code]
>
> Regards
> Anthoni

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