Re: [android-developers] Re: Extracting colors from Themes?

2010-04-30 Thread Mariano Kamp
Hey Nick, that's the thing. It's not that easy. Checkout what I wrote in my initial post: item name=colorBackground@android:color/background_dark/item item name=textColorPrimary@android:color/primary_text_dark/item They basically look the same right? And they are both public,

Re: [android-developers] Re: Extracting colors from Themes?

2010-04-29 Thread Mariano Kamp
Hey Pat. Thanks for your chipping in. No, I could also hardcode the colors and that is what it seems I will have to do. In my particular case it won't make much difference at the moment. For now I just need two values and they correspond to the light and dark. But for the future my needs will

[android-developers] Re: Extracting colors from Themes?

2010-04-29 Thread patbenatar
Mariano- Well if the colors are publicly accessible you could access them directly [find out the color resource identifiers by digging through the source for the system theme/style xml files.. available in the Git repo], something like: @android:color/resourceid .. This will allow you to use the

[android-developers] Re: Extracting colors from Themes?

2010-04-27 Thread patbenatar
Do you need to be doing this programatically? You could always take a screenshot of your phone [either using DDMS on a non-rooted device or the PicMe app on a rooted device] and then grab the colors using Photoshop or any image editing software. Another option, again not programmatic, would be to