Thanks Marco,

I did a bit research and indeed the dark and light refers to theme.
The themes.xml actually refers to these colors when defining colors
for styles.

On May 28, 4:12 pm, Marco Nelissen <marc...@android.com> wrote:
> I think 'light' refers to a theme in this case, and if you're using the
> light theme, you get a light background with dark text on it.
>
> On Thu, May 28, 2009 at 7:04 AM, twan <twa...@gmail.com> wrote:
>
> > Good morning,
>
> > I got a little textview defined in layout xml:
> > ===
> > <TextView android:id="@+id/tvCategory"
> > android:layout_width="wrap_content"
> >                android:background="@android:color/background_light"
> > android:layout_height="wrap_content"
> >                android:padding="2dp" android:layout_weight="1.0"
> > android:gravity="left" android:textColor="@android:color/
> > primary_text_light" />
> > ===
>
> > As you can see the background color is "background_light" (this
> > results in white color) and the text color is
> > "primary_text_light" (this results in black color).
>
> > I would have thought that primary_text_light would result in a "light"
> > color like white, not black ;-)
>
> > When i change "primary_text_light" into "primary_text_dark" the text
> > color becomes color white.
>
> > Is this a bug in the naming of the default colors?
>
> > Kind regards,
> > Twan
>
>
--~--~---------~--~----~------------~-------~--~----~
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