title: Linear Layout background color
body: <p>I am trying to change the background of whole screen to white. I doing it by adding by android:background="#ffffff" attribute to linerlayout. but it is not working, i dont know what i am missing ?</p>
  
  <p><a href="http://developer.android.com/reference/android/widget/LinearLayout.html" rel="nofollow">http://developer.android.com/reference/android/widget/LinearLayout.html</a></p>
  
  <pre><code>xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical" android:padding="10dip"
  android:layout_width="fill_parent" android:layout_height="wrap_content"
  **android:background="#ffffff"** &gt;
  </code></pre>
  
  <p>I also tried to this programtically , something like this 
           setContentView(R.layout.main);
           LinearLayout linLay = (LinearLayout) findViewById(R.layout.main);<br>
           linLay.setBackgroundColor(Color.WHITE);</p>
  
  <p>but application throws error</p>