You'll need to write your own layout manager that implements the layout algorithm you want. Writing a layout manager to accomplish a specific layout is not hard; the ones that are built into the platform look complicated because they try to handle anything reasonable you throw at them and tend to have lots of options.
Doing this is not related to an Activity at all. On Sun, Mar 13, 2011 at 2:47 PM, Jay <johnabloodwor...@gmail.com> wrote: > Thanks. I should have been more clear. I don't want them to have to > take up the whole space. I want them both to essentially wrap_content > as if both had the same (wider of the two) labels. More generally, > knowing how to do this kind of spacing "by hand" would make a > RelativeLayout more useful in many cases. > > Jay > > On Mar 13, 1:28 pm, TreKing <treking...@gmail.com> wrote: > > On Sun, Mar 13, 2011 at 11:09 AM, Jay Bloodworth < > johnabloodwor...@gmail.com > > > > > wrote: > > > Is there a standard idiom for an Activity to enforce that two of it's > child > > > views have the same width in cases where a LinearLayout won't do it > (like > > > two horizontally adjacent buttons)? > > > > If you have to horizontally adjacent button in a LinearLayout, you can > set > > their weights to 1 each, so they both occupy the same amount of space and > > collectively use up all the space their parent provides. > > > > > ------------------------------------------------------------------------------------------------- > > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > > transit tracking app for Android-powered devices > > -- > 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+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en