I'm searching way to get Android system colors - color theme used in device.
Using android:color/
I didn't get correct colors.
For example: background color in my device is BLACK
, menu background color is DARKGREY
.
Values from android:color/
in device is: only BLACK
and WHITE
backgrounds.
It might just be setting a color filter on whatever the base color of the device is. That may be why you're not getting the base color you were expecting.
This is just a theory, I haven't verified it yet. Either that, or the base color for the theme you're looking is stored in a slightly different location. That's also a possibility.
You can get android system color using
And this is working fine
Thanks for rekire :)
Finally I have the answer: Android: How to get background color of Activity in Java?