[android-developers] Re: Strange behavior with Theme.DeviceDefault.Light

2012-01-31 Thread Ricardo Amaral
Just to let everyone who stumbles upon this that I had the confirmation 
from Adam Powel that this "was a bug that slipped through, it has been 
fixed for the next update". Problem resolved :)

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

Re: [android-developers] Re: Strange behavior with Theme.DeviceDefault.Light

2012-01-25 Thread Ricardo Amaral
It does seem to contradict but looking at *
res/values/themes_device_defaults.xml* on API Level 15 source (look here: 
http://pastebin.com/rj5LwgVf) we can see that both the *Theme.DeviceDefault*and 
*Theme.DeviceDefault.Light* inherit from *Theme.Holo* and *Theme.Holo.Ligh*t, 
respectively. But they both override some styles. For some reason these 
overrides (this is just my guess though) are messing up the Light theme and 
not the default one.

We can also see on...

Line 179:




Line 325:




There are no overrides and when I use this *Light.NoActionBar* theme, 
everything works as expected. To me it's not a problem because I use a 
library for the ActionBar, not the native one. But for people who does need 
the native one, this is not a good solution.

There's something really strange going on with ICS themes...

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

Re: [android-developers] Re: Strange behavior with Theme.DeviceDefault.Light

2012-01-25 Thread Kostya Vasilyev
Normally I use @android:style/Theme.Holo.Light (and its dark counterpart),
and it works very well except for custom alert dialog content, but that's a
"known known" and there are ways to deal with that.

Just tried out @android:style/Theme.DeviceDefault.Light on my Galaxy Nexus
with 4.0.2 and the result is the same as you're seeing in the emulator - it
looks quite different from @android:style/Theme.Holo.Light, weird and
unreadable.

This seems to directly contradict the blog post you linked to above:

"Google's Nexus devices alias DeviceDefault to the unmodified Holo themes."

Is the Galaxy Nexus a Nexus device? Is it a Google device? Does anyone know?

-- Kostya

PS Another cute bug is that bringing up a context menu in an
ExpandableListView pushes the expandable view's content veritically off the
screen - so you have an unreadable context menu over an otherwise purely
white screen.

25 января 2012 г. 6:54 пользователь Ricardo Amaral  написал:

> No one else noticed this problem?
>
> Are you all using the default/dark theme?
>
> This isn't an issue for you guys?
>
>  --
> 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
>

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

[android-developers] Re: Strange behavior with Theme.DeviceDefault.Light

2012-01-24 Thread Ricardo Amaral
No one else noticed this problem?

Are you all using the default/dark theme?

This isn't an issue for you guys?

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