I would recommend using the RelativeLayout instead of the linear layout. You could place them like this: - first label aligned top parent (Band) - second label below first label (Members) - second edit text (Members list) right of second label, aligned top with second label and aligned parent right - first edit text (Band name) right of first label, aligned top with first label, aligned left with second edit text and aligned parent right - Ok button below second label, aligned parent left - Cancel button below second lable, right of Ok button
I placed the Band edit box relative to the Members edit box because it's label will always have more pixels so if we want to obtain a nice effect where the edit boxes have the same sizes and fill the usable space. As you can see there are no hard coded dimensions or anything. On Mon, Sep 7, 2009 at 2:12 AM, Mark Murphy <[email protected]> wrote: > > Carl wrote: > > Thanks, I'm such an idiot! The docs say "LinearLayout aligns all > > children in a single direction", I expected the items to wrap around > > and continue underneath. > > Ah! > > Android lacks that sort of FlowLayout like you see in Swing. That'd be a > nice project for somebody... > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://twitter.com/commonsguy > > Android Development Wiki: http://wiki.andmob.org > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

