Sponsored Links
I use the following layout to define a gameboard. <LinearLayout xmlns:android=" http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <gomoku.com.BoardView android:id="@+id/gomoku" android:layout_width="wrap_content" android:layout_height="wrap_content"/> </LinearLayout> All works fine, however I want the gameboard to appear as square. So I need to resize the board at runtime to put it in the center of the screen and make it square. I tried many options without success :( Help is very much appreciated Thanks, Jasper de Keijzer --