title: How to set a background color for linear layout programatically?
body: <p>How to set a background color for linear layout programatically? I tried following code but not working:</p>
  
  <pre><code>LinearLayout footer = new LinearLayout(activity);
  footer.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, 8));
  footer.setBackgroundColor(Color.parseColor("##ffb5d6e1"));
  ((LinearLayout)v).addView(footer);
  </code></pre>