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 Guy
www.curious-creature.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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