title: How to set view weights?
body: <p>I'm trying to get the views inside a LinearLayout to fill the width. I have tried setting it by using LayoutParams, but it gave me an error:</p>
  
  <p>My code:</p>
  
  <pre><code>EditText et = new EditText(v.getContext());
                      et.setHint("asset ");
                      et.setTextSize(12);
                      et.setLayoutParams(new LayoutParams(
                              LayoutParams.WRAP_CONTENT,
                              LayoutParams.WRAP_CONTENT, 0.25f));
                      et.setPadding(0, 15, 0, 10);
  </code></pre>
  
  <p>The error:</p>
  
  <blockquote>
    <p>The constructor ActionBar.LayoutParams(int, int, float) is undefined</p>
  </blockquote>