Many online tutorials for this:
In this particular case, I assume that next to the icon is RelativeLayoutwith three TextViewsand using a custom background. This drawable will determine different background colors using a selector depending on the state android:state_selectedand / or android:state_pressed.
source
share