I\'m trying to detect the focus/pressed color for button and other elements. This is needed because I\'m developing new components and it\'s important that those look as par
This is pretty much a duplicate of: Android ListView Selector Color
Also, why do you need to detect the colours? Just do nothing and your widgets will fit in to the platform's existing look & feel.
Or if you're writing a custom theme, just make yours inherit from android:Theme.
android:Theme