CheckBox spacing next to TextView and Button
my checkbox seems to be screwing with my layout quite a bit.
This is what I want:
Button | CheckBox | TextView
but the CheckBox is pushing my textview way right
Button | CheckBox | TextView
my xml layout:
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="15dp">
<Button
android:id="@+id/signin_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp"
android:layout_marginLeft="7dp"
android:background="@layout/bordersignin"
android:textColor="#ffffff"
android:text="@string/signin" />
<CheckBox
android:id="@+id/staysignedin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/staysignedin" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left|center"
android:text="Stay signed in" />
</LinearLayout>
No comments:
Post a Comment