This is a button selector such that when normal it appears red, when pressed it appears grey.
I would like to ask how could the code be further directly modified suc
Create custom_selector.xml in drawable folder
Create selected.xml shape in drawable folder
Create unselected.xml shape in drawable folder
Add following colors for selected/unselected state in color.xml of values folder
#a8cf45 #ff8cae3b
you can check complete solution from here