Hi all,

I have to buttons in a RelativeLayout, but even I set the
layout_marginRight/layout_marginLeft to 0, these two button are still
separated.

pls check the code below, any comments?


    <RelativeLayout xmlns:android="
http://schemas.android.com/apk/res/android";
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:gravity="center_horizontal"
        android:layout_margin="0.0sp"
    >
        <Button android:id="@+id/button1"
            android:layout_width="230sp"
            android:layout_height="wrap_content"
            android:visibility="gone"
            android:layout_marginRight="0.0sp"
            android:layout_marginLeft="0.0sp"
        />
        <Button android:id="@+id/button2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_toRightOf="@id/button1"
            android:visibility="gone"
            android:layout_marginRight="0.0sp"
            android:layout_marginLeft="0.0sp"
        />
    </RelativeLayout>

Regards,
James

--~--~---------~--~----~------------~-------~--~----~
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