This is, unfortunately, working as intended. The position of the checkbox is
defined by the background drawable.

On Mon, Jul 18, 2011 at 1:21 AM, Ali Chousein <ali.chous...@gmail.com>wrote:

> Make a bug entry here: http://code.google.com/p/android/issues/list
>
> ----------
> Ali Chousein
> Geo-Filtered Assistant
> http://geo-filtered-assistant.blogspot.com/
> Cisco Android marketplace (Chosen for Cisco Cius)
> https://marketplace.cisco.com/apphq/products/510
>
>
> On Jul 17, 3:45 pm, Simon Platten <simonaplat...@googlemail.com>
> wrote:
> > 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Romain Guy
Android framework engineer
romain...@android.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

Reply via email to