title: FrameLayout layout_weight programmatically
body: <p>I'm trying to create a <code>FrameLayout</code> programmatically as follows(this view will float on the the bottom center of a <code>LinearLayout</code>):</p>
  
  <pre><code>    FrameLayout bottomFrameLayout = new FrameLayout(context);
      bottomFrameLayout.setLayoutParams(new FrameLayout.LayoutParams(0,LayoutParams.FILL_PARENT,Gravity.CENTER | Gravity.BOTTOM));
  </code></pre>
  
  <p>Since I set <code>layout_width=0dp</code>, I would like to also set <code>layout_weight</code> to control the width.  How can I do that?  </p>