Well I am 80% of the way there.
Now my problem is that it seems like the coordinates are not
considered translated for the views inside my translating view. So the
input does not move with the main View for the children views. Any
ideas.

Thanks for the help so far. I have been banging my head on this for
hours ! :(
I coudl have done my own implementation in much less time but I am
trying to use Android SDK as much as possible.


On Apr 9, 8:22 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote:
> Make sure you see fillAfter=true on the animation and
> keepAnimations=true on the layout that contains the view you are
> animating.
>
>
>
>
>
> On Wed, Apr 9, 2008 at 6:21 PM, Redhunt <[EMAIL PROTECTED]> wrote:
>
> >  Right. But now I see what is happening to me :(
>
> >  So this view I am talking about is being drawn over the Google Map (it
> >  is not an overlay, it has nothing to do wtih the map). So when I start
> >  a down animation (say by 20 pixels or whatever) everything looks good.
> >  But then if I happen to click on the map scrolling the map (a redraw
> >  takes place, I assume) and now my view pops automatically back to its
> >  original location without me doing anything. A very undesirable effect
> >  in my case. :) Am I doing something wrong ?
>
> >  On Apr 9, 8:00 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote:
> >  > Yes but you will need to use two different animations.
>
> > > On Wed, Apr 9, 2008 at 5:54 PM, Redhunt <[EMAIL PROTECTED]> wrote:
>
> >  > >  ok, that seems simple enough.
> >  > >  What about if I want to press a button and slide a view 20 pixels
> >  > >  down. Then press another button and slide the same view 20 pixels up
> >  > >  from where it currently is. So it is back to its original position.
> >  > >  Can I do this?
>
> >  > >  On Apr 9, 7:38 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote:
> >  > >  > 100%p means 100% of the parent. If you want to move your View up 20
> >  > >  > pixels your fromYDelta should be 0 and your toYDelta should be 
> > -20dip.
>
> >  > >  > On Wed, Apr 9, 2008 at 5:33 PM, Redhunt <[EMAIL PROTECTED]> wrote:
>
> >  > >  > >  Could someone explain to me how TranslateAnimation works? What 
> > does
> >  > >  > >  100%p mean exactly. 100% of what?
> >  > >  > >  How can I create a transformation (in XML or code) to move a 
> > view up
> >  > >  > >  say 20 pixels ? What should the FromYDelta and ToYDelta be? 
> > Thanks
>
> >  > >  > >  I know this should be easy so I know I am missing something 
> > obvious.
>
> >  > >  > --
> >  > >  > Romain Guywww.curious-creature.org
>
> >  > --
> >  > Romain Guywww.curious-creature.org-Hide quoted text -
>
> >  > - Show quoted text -
>
> --
> Romain Guywww.curious-creature.org- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to