Then write a custom Animation class, which should not be different than what you are doing already.
On Thu, Apr 30, 2009 at 4:31 PM, Nik Bhattacharya <nik.bhattacha...@frogdesign.com> wrote: > > So if I have a fine grained animation that moves along a complex > curve, I will have to have potentially hundreds of translate > animations in my anim file? Just to implement the S movement, along a > HVGA screen, I could see a lot of linear translate animations in the > animation set. How long will the xml parser take to even read the > file leave alone animating. Not sure I entirely agree with this > method for complex animations. > > Nik > > On Apr 30, 5:48 pm, Romain Guy <romain...@google.com> wrote: >> Just use an AnimationSet containing several TranslateAnimation. >> >> On Thu, Apr 30, 2009 at 3:37 PM, Nik Bhattacharya >> >> >> >> <nik.bhattacha...@frogdesign.com> wrote: >> >> > What if I want to animate a view (lets say a button) in an "S" shape >> > from the top right of the screen to the bottom left of the screen? >> > Use a FrameLayout and then have a whole bunch of translate animations >> > that I have to hand-code? >> >> > With a handler and an AbsoluteLayout, I can do this easily wherein at >> > each callback I change the x/y position of the view and redraw. Might >> > not be the most efficient way to draw, but atleast I can do it. >> >> > Please let me know how I can achieve this without an AbsoluteLayout. >> >> > Thanks, >> > Nik >> >> > On Apr 29, 3:21 pm, Romain Guy <romain...@google.com> wrote: >> >> Everything you can do with AbsoluteLayout can be done with FrameLayout >> >> and RelativeLayout. AbsoluteLayout was deprecated because its use >> >> encourage applications that will NOT work with devices with different >> >> screen dimensions/resolutions. As such we decided to deprecate >> >> AbsoluteLayout to encourage developers to do the right thing and use >> >> layouts that will work much better with other screen >> >> dimensions/resolutions. >> >> >> On Wed, Apr 29, 2009 at 1:19 PM, nEx.Software <justin.shapc...@gmail.com> >> >> wrote: >> >> >> > I'd like to know the reasoning behind the deprecation of this layout. >> >> > I suppose you could maybe pull the code from 1.1 and keep using it, I >> >> > don't see the FrameLayout or RelativeLayout being viable alternatives >> >> > despite being recommended in the docs. >> >> >> > On Apr 29, 1:12 pm, karthikr <karthik.scintill...@gmail.com> wrote: >> >> >> Hi, >> >> >> >> I have just realised that AbsoluteLayout has been deprecated in the >> >> >> latest sdk, however I have designed my apps based on AbsoluteLayout >> >> >> and it is very difficult for me to remove them and change it to a >> >> >> different layout. Can someone help me as to how I should proceed? >> >> >> Absolute layout was really helpful in positioning the elements to be >> >> >> accurate. One could always had different layout definitions for >> >> >> different screen sizes, and based on the current width and height the >> >> >> required layout can be set. Removing of AbsoluteLayout is creating a >> >> >> lot of frustration to me as I have already designed most of the >> >> >> things >> >> >> using it. Somebody please help me out. >> >> >> >> Regards, >> >> >> R.Karthik >> >> >> -- >> >> Romain Guy >> >> Android framework engineer >> >> romain...@android.com >> >> >> Note: please don't send private questions to me, as I don't have time >> >> to provide private support. All such questions should be posted on >> >> public forums, where I and others can see and answer them >> >> -- >> Romain Guy >> Android framework engineer >> romain...@android.com >> >> Note: please don't send private questions to me, as I don't have time >> to provide private support. All such questions should be posted on >> public forums, where I and others can see and answer them > > > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---