[android-developers] Re: How to port AbsoluteLayout to FrameLayout?

2009-05-04 Thread Mark Murphy
Sheepz wrote: but how do I implement overlapping with a relative layout? Try padding. Card B has left and top aligned with Card A, but Card B has padding which shifts the card to provide the overlap. In principle, Romain Guy's answer (write your own layout) is probably the right one, but

[android-developers] Re: How to port AbsoluteLayout to FrameLayout?

2009-05-03 Thread Dianne Hackborn
Probably the best thing is to write your own layout manager. It's not hard, and it takes you down the path of computing the position of your widgets in a way that is sensitive to the actual screen size (since your layout is performed in the context of whatever size is given to your layout

[android-developers] Re: How to port AbsoluteLayout to FrameLayout?

2009-05-01 Thread Sheepz
i knew it was a bad idea to use it the second i used it... The reason i needed it was this: take a look at this image plz: http://2.bp.blogspot.com/_NiIT7LXuBv4/SfuFe7dFn9I/CKo/0neSn1Jyey8/s1600/device.png notice the cards on the middle that are overlapping? see the bottom cards that have

[android-developers] Re: How to port AbsoluteLayout to FrameLayout?

2009-05-01 Thread Romain Guy
Just give your widget a margin. That's pretty simple. On Fri, May 1, 2009 at 4:38 PM, Sheepz eladk...@gmail.com wrote: i knew it was a bad idea to use it the second i used it... The reason i needed it was this: take a look at this image plz:

[android-developers] Re: How to port AbsoluteLayout to FrameLayout?

2009-05-01 Thread Mark Murphy
i knew it was a bad idea to use it the second i used it... The reason i needed it was this: take a look at this image plz: http://2.bp.blogspot.com/_NiIT7LXuBv4/SfuFe7dFn9I/CKo/0neSn1Jyey8/s1600/device.png notice the cards on the middle that are overlapping? see the bottom cards

[android-developers] Re: How to port AbsoluteLayout to FrameLayout?

2009-05-01 Thread Romain Guy
That layout screams don't use built-in layouts :) On Fri, May 1, 2009 at 4:44 PM, Mark Murphy mmur...@commonsware.com wrote: i knew it was a bad idea to use it the second i used it... The reason i needed it was this: take a look at this image plz:

[android-developers] Re: How to port AbsoluteLayout to FrameLayout?

2009-03-13 Thread Edward Falk
On Mar 12, 5:03 pm, Romain Guy romain...@google.com wrote: AbsoluteLayout is deprecated in Cupcake. Why? And what do we use in its place? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: How to port AbsoluteLayout to FrameLayout?

2009-03-13 Thread Streets Of Boston
I'm using the AbsoluteLayout in one of my apps and it can be useful. However, i think it'll be deprecated because the AbsoluteLayout is device(/screen) dependent. E.g., if a new phone comes out with a square screen instead of 320x480, your app starts to look funny. You can mitigate this somewhat

[android-developers] Re: How to port AbsoluteLayout to FrameLayout?

2009-03-13 Thread Romain Guy
There can be good reasons to use the px unit, even though they should be pretty rare. AbsoluteLayout was deprecated to encourage developers to use other layouts and have apps that behave as well as possible at difference resolutions. Also, the dp unit depends on the density of the screen, not

[android-developers] Re: How to port AbsoluteLayout to FrameLayout?

2009-03-13 Thread mathiastck
Ouch. I like AbsoluteLayout for small layouts, contained within larger more flexible layouts. Without it I think I'd have to abuse padding, and use lots of clear drawables with well defined size as spacers. On Mar 12, 5:03 pm, Romain Guy romain...@google.com wrote: AbsoluteLayout is

[android-developers] Re: How to port AbsoluteLayout to FrameLayout?

2009-03-12 Thread Streets Of Boston
Where did you read it became obsolete. I just checked the reference docs and it's not been obsoleted/ deprecated. On Mar 12, 7:34 pm, Meryl Silverburgh silverburgh.me...@gmail.com wrote: Hi, AbsoluteLayout has become obsolete, I need to convert it to FrameLayout. My problem is in

[android-developers] Re: How to port AbsoluteLayout to FrameLayout?

2009-03-12 Thread Romain Guy
AbsoluteLayout is deprecated in Cupcake. On Thu, Mar 12, 2009 at 5:01 PM, Streets Of Boston flyingdutc...@gmail.com wrote: Where did you read it became obsolete. I just checked the reference docs and it's not been obsoleted/ deprecated. On Mar 12, 7:34 pm, Meryl Silverburgh