Use a table layout, and give it the following attribute:
android:stretchColumns="*"
example:
        <TableLayout
                android:id="@+id/TableLayout01"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:stretchColumns="*" 
android:layout_gravity="fill_vertical">

             <TableRow android:layout_gravity="bottom"
android:layout_weight="1" android:layout_height="fill_parent"
android:layout_width="fill_parent">
                       <Button
                           android:id="@+id/btnReset"
                           android:layout_height="wrap_content"
                           android:layout_column="0"
                           android:text="@string/btnReset"
android:layout_gravity="bottom"/>
                       <Button
                           android:id="@+id/btnDone"
                           android:layout_height="wrap_content"
                           android:layout_column="1"
                           android:text="@string/btnDone"
android:layout_gravity="bottom"/>
             </TableRow>


        </TableLayout>


On Dec 29, 6:06 pm, andrew android <[email protected]> wrote:
> Have you tried a table layout?
>
> On Dec 28, 9:03 pm, Robert <[email protected]> wrote:
>
>
>
> > I am developing a misterhouse frontend.  I have 9 image buttons that I
> > want to be evenly spaced on all sides.  
> > Seehttp://onlamp.com/onlamp/2004/11/11/graphics/mrhousemain.gif.  What
> > layout and xml parameters do I use to achieve this?

-- 
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