[android-developers] Re: Regarding AbsoluteLayout being deprecated in SDK 1.5

2009-05-04 Thread Sheepz
I'm playing around with this too, take a look here: http://developreality.blogspot.com/2009/05/overcoming-absolutelayout-deprecation.html On May 2, 9:50 pm, sami miguelp...@gmail.com wrote: if I have to usehttp://developer.android.com/reference/android/view/ViewGroup.MarginL... that margin

[android-developers] Re: Regarding AbsoluteLayout being deprecated in SDK 1.5

2009-05-03 Thread sami
So, if I undestood well, everything I could do with an AbsoluteLayout I can do with a FrameLayout or a RelativeLayout. The only way to make that work is to use the view xml attributes or methods such the ones here described...

[android-developers] Re: Regarding AbsoluteLayout being deprecated in SDK 1.5

2009-05-03 Thread sami
if I have to use http://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html that margin methods or xml attributes... does it has sense to deprecate the AbsoluteLayout since that margin measures are sitll being in pixels? does it not have the same problem that

[android-developers] Re: Regarding AbsoluteLayout being deprecated in SDK 1.5

2009-04-30 Thread Nik Bhattacharya
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

[android-developers] Re: Regarding AbsoluteLayout being deprecated in SDK 1.5

2009-04-30 Thread Romain Guy
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

[android-developers] Re: Regarding AbsoluteLayout being deprecated in SDK 1.5

2009-04-30 Thread Nik Bhattacharya
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

[android-developers] Re: Regarding AbsoluteLayout being deprecated in SDK 1.5

2009-04-30 Thread Romain Guy
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

[android-developers] Re: Regarding AbsoluteLayout being deprecated in SDK 1.5

2009-04-30 Thread Nik Bhattacharya
That is a much better answer. I can certainly live with that. Nik On Apr 30, 6:32 pm, Romain Guy romain...@google.com wrote: 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

[android-developers] Re: Regarding AbsoluteLayout being deprecated in SDK 1.5

2009-04-29 Thread nEx.Software
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

[android-developers] Re: Regarding AbsoluteLayout being deprecated in SDK 1.5

2009-04-29 Thread Romain Guy
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