Here is my layout: \[code\]<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/outerBox" android:layout_width="wrap_content" android:layout_height="fill_parent" ><GridLayout android:id="@+id/checksHere" android:layout_width="fill_parent" android:layout_height="wrap_content" android:columnCount="5" android:columnWidth="100dp" /><GridLayout android:id="@+id/textHere" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/checksHere" android:columnCount="4" /><Button android:id="@+id/submitButton" android:layout_width="185dip" android:layout_height="wrap_content" android:layout_alignLeft="@id/outerBox" android:layout_below="@id/textHere" android:layout_margin="3dip" androidnClick="submit" android:text="@string/submit" /><Button android:id="@+id/cancelButton" android:layout_width="185dip" android:layout_height="wrap_content" android:layout_below="@id/textHere" android:layout_margin="3dip" android:layout_toRightOf="@id/submitButton" androidnClick="next" android:text="@string/cancel" /><Button android:id="@+id/backButton" android:layout_width="185dip" android:layout_height="wrap_content" android:layout_below="@id/textHere" android:layout_margin="3dip" android:layout_toRightOf="@id/cancelButton" androidnClick="next" android:text="test" /></RelativeLayout>\[/code\]I have a relative layout. The layout has two grid layouts at the top, which can be populated in my java code with text or checks. They can be blank. Then I have three buttons. The first two buttons display on the screen just fine. The third button just sits on top of the first button:
I changed the third button (backButton) to be toRightOf submitButton just to see what would happen. It goes on top of the cancelButton, as expected. I feel like I'm missing a simple fundamental, but I have not been able to figure it out.