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
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...
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
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
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
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
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
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
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
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
10 matches
Mail list logo