Friday, December 24, 2010

Re: [android-developers] Re: Fill-remainder layout?

The layout performance docs say that RelativeLayout is faster due to fewer calls to calculate child dimensions.
I actually got it working with a fairly minimal layout definition.

On Fri, Dec 24, 2010 at 8:19 PM, Doug <beafdefx@gmail.com> wrote:
I really think what you're trying to do is most easily expressed as a
LinearLayout (itself using width and height to fill parent) using the
layout_weight property to make the middle view grab any extra space.
If found that it's easy to go overboard with a verbose RelativeLayout
when all that's needed is a LinearLayout (and it's probably runs
faster to boot).



--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment