Is there any comprehensive documentation for the RelativeLayout layout algorithm (besides javadoc and android blog examples)?
In this layout, the edittext is on top of the textview. This seems wrong since the EditText has android:layout_below="@id/textview". If I remove the android:layout_centerInParent="true" on the TextView, then the EditText is pushed below the TextView. Can anyone explain the algorithm that causes this to happen? <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:id="@+id/main" > <RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:id="@+id/inner" > <TextView android:id="@+id/textview" android:layout_centerInParent="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/hello" /> <EditText android:layout_below="@id/textview" android:id="@+id/textfield" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/hello" /> </RelativeLayout> </RelativeLayout> -- 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