title: How to pass color dynamically in dynamic layout?
body: <p>I am creating a dynamic layout using following code, </p>
  
  <pre><code>LinearLayout outerLinearLayout = new LinearLayout(activity);
  outerLinearLayout.setBackgroundColor(Color.WHITE);
  </code></pre>
  
  <p>As you can see I am setting its background color to white, now suppose I have array of string which contains element like { "#FF2233", ... } then How can I pass this hexadecimal value to <code>setBackgroundColor()</code> dynamically ? </p>
  
  <p>My motive is to pass dynamic color value at run time rather than passing a fix value like <code>Color.WHITE</code>.</p>