Try RelativeLayout instead of LinearLayout. There are a lot of attributes you can use within a RelativeLayout that help you position the elements according to their siblings.
http://developer.android.com/reference/android/widget/RelativeLayout.html http://developer.android.com/reference/android/widget/RelativeLayout.LayoutParams.html On Nov 13, 12:32 pm, jdekeij <[email protected]> wrote: > Hoi, > > I try to get a button below my gameboard, however the gameboard > overrides the button. When placed above the gameboard every thing is > alright. > The gameboard is named ¨reversi.com.BoardView¨ > > <?xml version="1.0" encoding="utf-8"?> > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > > > > <TextView > android:id="@+id/reversimessage" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:layout_marginTop="10dip" > android:text="Success with the match" > /> > > <Button android:id="@+id/takeback" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="Takeback"/> > > <reversi.com.BoardView > android:id="@+id/reversi" > android:layout_width="wrap_content" > android:layout_height="wrap_content"/> > </LinearLayout> > > Help is very much appreciated > Jasper de Keijzer -- 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

