I have an activity with four image buttons (red, blue, yellow, green)
the default background color for the activity is green
how to change activity color when button is clicked
e.g change background color from green to red when user click the red button ?
I have an activity with four image buttons (red, blue, yellow, green) the default
Share
By default set the color of your parent layout and initialize it in Activity as:
Initialize 4 buttons in activity on their click write:
where layout is your main layout of xml file
set above color on particular buttons click events