Sunday, July 17, 2011

[android-developers] Checkbox bug?

Whilst building a layout I think I've found a bug....in a relative layout:

    <CheckBox android:text="File-name"
                 android:layout_width="fill_parent"
                 android:layout_height="wrap_content"
                 android:layout_gravity="left"
                 android:id="@+id/chkUse"
                 android:textColor="@color/yellow"
                android:textStyle="bold" />

Works find, with the text aligned to the left of the checkbox, however if I add a background colour to the checkbox, the text overlays the checkbox:

    <CheckBox android:text="File-name"
                 android:layout_width="fill_parent"
                 android:layout_height="wrap_content"
                 android:layout_gravity="left"
                 android:id="@+id/chkUse"
                 android:background="@color/blue"
                 android:textColor="@color/yellow"
                android:textStyle="bold" />

--
Regards,
Sy

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate