Can Click Highlight Be Changed?

pixelpop

Active Member
Licensed User
Longtime User
In every "click" action I have tested (buttons, lists, etc.) the highlight color when the click is performed is the same (on my emulator it is an orange-yellow color with some level of opacity). Is this a function of the Android OS or is this accessible as some global variable?
 

Informatix

Expert
Licensed User
Longtime User
In every "click" action I have tested (buttons, lists, etc.) the highlight color when the click is performed is the same (on my emulator it is an orange-yellow color with some level of opacity). Is this a function of the Android OS or is this accessible as some global variable?

It is a system drawable. You can replace it with another drawable by using a StateListDrawable.
 
Upvote 0
Top