Click here to Skip to main content
15,898,789 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello! I have a problem with my first Android app. I need to change background when press a button. For example I have 3 pictures and 3 buttons,when I press 1 button I will see 1st picture at the backgrond, when I press 2-nd button I will see 2-nd picture at the backround. I found solution how to change colour but not pictures.Please help.
Posted

1 solution

Try to use on Button Click

yourBaseLayout.setBackgroundColor(color)


This has been solved my problem.

Check this Blog
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900