title: Changing background color of the layout on a button click in Android
body: <p>I am a newbie in Android. So please spare me if I am asking a stupid question.</p>
  
  <p>My application contains just one button in a Linear Layout. Requirement is, I have to change the background color of the linear layout of my app on a button click. By default it is <strong>WHITE</strong>, when I press on the button it should change to some random color and when I press the button again, it should change to the default color (white) again.</p>
  
  <p><code>button.setBackgroundColor(Color.BLUE)</code> (on the <strong>OnClick()</strong> method), changes the background color to <strong>BLUE</strong>, but how to get back to the default color?</p>