I've asked this and related questions a few times and had no
response. So I'll try to be clear.

I'm writing an app that I hope the user will be able to change
the Theme via preferences - from Holo dark to Light and vice
versa.

I've got a dialog that needs to be initialized to a background
color (otherwise it's transparent). I'd like it to be initialized
to the active theme's background color - and that too in xml
layout definition.

I think the solution has to do with Themes/styles/attrs but I 
just haven't gotten the handle on those topics.

Right now, I'm setting the style for the Dialog as

    <style name="InputDialogStyle" parent="android:Theme.Holo.Light.Dialog">
        <item name="android:background">#FF0000FF</item>
    </style>

but I think the eventual solution has to do with something like

        <item name="android:background">?android:????</item>

but it's not working.


Also, above I hard-coded Holo.Light - but ideally I would like to inherit
from the active theme - so can I leave parent out? I doubt it because
to get the Dialog look - I have to inherit from a Dialog - right?


Hopefully I've been clearer this time.



-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to