title: Android: LayoutParams does not accept float value
body: <p>why </p>
  
  <pre><code>TableRow.LayoutParams layout = new TableRow.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, 1/11);
  </code></pre>
  
  <p>does not work but</p>
  
  <pre><code>String s =  "0.0909";
  float fVal = Float.valueOf(s).floatValue();
  
  TableRow.LayoutParams layout = new TableRow.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, fVal);
  </code></pre>
  
  <p>does?</p>
  
  <p>I use this to make table rows fit in a table with dynamic table width.</p>
  
  <p>Regards</p>