[android-developers] Re: Layout with all cells the same size

2009-10-20 Thread Tom Gibara
It's interesting how intuitions vary :) It seems immediate to me, it's a consequence of the fact that views don't exceed their fixed dimensions and weightings mop-up free space. Tom. 2009/10/20 David Given > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Tom Gibara wrote: > > Try settin

[android-developers] Re: Layout with all cells the same size

2009-10-20 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tom Gibara wrote: > Try setting the width of every child in your LinearLayout to 0, and their > weights to 1. Yup, that works. Thanks! (But good grief, it's hardly intuitive. I'd have never have thought of that on my own.) - -- ┌─── dg@cowlark.com

[android-developers] Re: Layout with all cells the same size

2009-10-20 Thread Tom Gibara
Try setting the width of every child in your LinearLayout to 0, and their weights to 1. Tom On 20 Oct 2009 12:50, "David Given" wrote: I'm trying to do something incredibly simple: I want a layout which evenly divides the space up among its children, so each child is the same size. I cannot fi