Neilz wrote:
> Nope, I give up. I've spend way too many hours on this today :-(
> 
> Here's a challenge for anyone who fancies it:
> ---------------------------------------------
> 
> Create a layout which places five buttons across the screen, of
> exactly equal size, filling all space, that say "One", "2", "3" "Four"
> "5". (The text is random, the point is that if the text varies, the
> buttons remain the same size). No absolute values/dimensions allowed.
> 
> 
> Prize
> -----
> Just the satisfaction of being a good samaritan ;-)
> 

Put them in a LinearLayout, each with android:layout_width="0px" and
android:layout_weight="1".

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Training: http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to