?attr/colorControlHighlight is a reference to the colorControlHighlight value defined in attr xml.
attrs.xml is a file located in:
android_sdk \\ platform android-22 \ data \ res \ values ββ\ attrs.xml
All attributes that you can use in your application are listed here.
If we check this file, we will find
<attr name="colorControlHighlight" format="color" /> string,
which means that colorControlHighlight itself is a reference to color.
And all the attributes declared here are just references to other values. Actual values ββare assigned in the themes.xml file, which, in turn, is located in:
Android SDK \\ platform android-22 \ data \ Res \ values ββ\ themes.xml
If we check this file, we will find that there are many themes that use our colorControlHighlight link. Thus, regardless of whether you use any theme in the application, the values ββof colorControlHighlight will be different for each of them.
In our case, there are 2 topics:
<item name="colorControlHighlight">@color/legacy_button_pressed</item> for the topic
and
<item name="colorControlHighlight">@color/legacy_light_button_pressed</item> for Theme.Light
Here we see other links instead of values. But now they relate to the color attribute: @color/ . So we need to go to the color.xml files.
it
Android SDK \\ platform android-22 \ data \ res \ values ββ\ colors.xml
Android SDK \\ platform android-22 \ data \ res \ values ββ\ colors_holo.xml
Android SDK \\ platform android-22 \ data \ Res \ values ββ\ colors_leanback.xml
Android SDK \\ platform android-22 \ data \ res \ values ββ\ colors_legacy.xml
Android SDK \\ platform android-22 \ data \ res \ values ββ\ colors_material.xml
A simple file check reveals the actual values ββwe were looking for:
in colors-legacy.xml file :
<color name="legacy_button_pressed">#fffea50b</color>
and
<color name="legacy_light_button_pressed">@color/legacy_button_pressed</color> which also refers to the first color.
So the color we were looking for was # fffea50b