Hi, i take a look in your, Mark M., book (Busy coders guide to android development 2nd version) and I try to change your RelativeLayout example in my own xml layout file. But all widgets (Buttons, TextView, EditText) are in one "row" and they lie on top of each other.
I have not much experience with the layout files, but i think their can not be very much wrong?? Here my new xml file: <?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="wrap_content"> <TextView android:id="@+id/ep" android:text="erfasste Punkte:" android:layout_width="wrap_content" android:layout_height="wrap_content"/> SHOULD BE RIGHT OF THE TXTVIEW <EditText android:id="@+id/epe" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="0" android:layout_toRightOf="@id/ep" android:layout_alignBaseline="@id/ep"/> SHOULD BE UNDER THE FIRST TEXTVIEW <TextView android:id="@+id/ak" android:text="aktuelle km:" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/epe" android:layout_alignRight="@id/epe"/> SHOULD BE RIGHT OF THE SECOND TEXTVIEW <EditText android:id="@+id/ake" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_toRightOf="@id/ak" android:layout_alignBaseline="@id/ak" android:text="0"/> UNDER THE SECOND TEXTVIEW <TextView android:id="@+id/ab" android:text="Abbiegepunkt hinzufügen" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/ak" android:layout_alignRight="@id/ak" /> UNDER THE THIRD TEXTVIEW AND THAN ALL 4 BUTTONS IN ONE "ROW" <Button android:id="@+id/left" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Links" android:layout_below="@id/ab" android:layout_alignLeft="@id/ab"/> RIGHT OF THE FIRST BUTTON <Button android:id="@+id/halblinks" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Halblinks" android:layout_toRightOf="@id/left" android:layout_alignTop="@id/left"/> <Button android:id="@+id/halbrechts" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Halbrechts" android:layout_toRightOf="@id/halblinks" android:layout_alignTop="@id/left"/> <Button android:id="@+id/rechts" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@id/halbrechts" android:layout_alignTop="@id/left" android:text="Rechts" /> </RelativeLayout> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---