RelativeLayouts are easy to use once you are comfortable with them. If you still want to use LinearLayout, this will solve your problem.
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" > <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="left" > <Button android:id="@+id/auth_login_button" android:layout_height="50dip" android:layout_width="100dip" android:text="@string/auth_login_label" android:textColor="#ffffff" android:background="#0000ff" android:textStyle="bold" /> </LinearLayout> <LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right" > <Button android:id="@+id/auth_signup_button" android:layout_height="50dip" android:layout_width="100dip" android:text="@string/auth_signup_label" android:textColor="#ffffff" android:background="#0000ff" android:textStyle="bold" /> </LinearLayout> </LinearLayout> But if you use this, the UI Hierarchy will be very complex. As Mark suggested, it is better to use a relative layout. Dexter http://tech-droid.blogspot.com -- 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