I have 8 buttons in my activity. What I am looking for is, The buttons have a default background and when a button is clicked, the background color should change to some other c
use this selector & put it in drawable folder & set button background to this selector.
OR You can use Color instead of Background. hope it helps.