I have this layout

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
       android:orientation="vertical"
       android:layout_width="fill_parent"
       android:layout_height="fill_parent"

       <TextView
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:text="Please enter your login details"
               android:typeface="sans"
       />
       <TextView
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:typeface="sans"
               android:text="Login:"
       />
       <EditText
               android:id="@+id/username"
               android:typeface="sans"
               android:singleLine="true"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:hint="username"
       />
       <TextView
               android:layout_width="fill_parent"
               android:typeface="sans"
               android:layout_height="wrap_content"
               android:text="Password:"
       />
       <EditText
               android:id="@+id/password"
               android:typeface="sans"
               android:password="true"
               android:singleLine="true"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:hint="password"
       />
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
               android:orientation="horizontal"
               android:layout_width="fill_parent"
               android:layout_height="fill_parent"
       >
               <Button
                       android:id="@+id/login_button"
                       android:typeface="sans"
                       android:text="Login"
                       android:layout_width="wrap_content"
                       android:layout_height="wrap_content"
                       android:hint="Login"
                       android:layout_centerHorizontal="true"
               />
               <Button
                       android:id="@+id/cancel_button"
                       android:typeface="sans"
                       android:text="Cancel"
                       android:layout_width="wrap_content"
                       android:layout_height="wrap_content"
                       android:hint="Cancel"
                       android:layout_centerHorizontal="true"
               />
       </LinearLayout>
       <TextView
               android:id="@+id/result"
               android:typeface="sans"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
       />
</LinearLayout>




How do I get the two buttons to horizontally centre


Thanks



--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to