I have an image button that has a transparent background and a image as a foreground. What i want to do is to make the button flash when i press the button. Now i don’t want to define two different images for the up and down state, is there any why i can define a selector color for the background and foreground and the background of the button ?
Kind Regards,
You can use this code for background selection of button for diff-2 state of button, save this file in drawable folder and set button background. Hope it will useful to you…:)