title: Width column tablelayout dynamically
body: <p>I have a problem regarding not using XML in the TableLayout.
  Someone has already asked the same as I do but the answer provided has been unable to help me.
  <a href="https://stackoverflow.com/questions/14644656/how-to-set-width-of-column-dynamically-in-android-tablelayout">how to set width of column dynamically in android tablelayout?</a></p>
  
  <p>Right now I have this</p>
  
  <pre><code>TableLayout tl = (TableLayout) findViewById(R.id.TableLayout1);
      /* Create a new row to be added. */
      TableRow tr = new TableRow(this);
      tr.setLayoutParams(new TableRow.LayoutParams(
              TableRow.LayoutParams.FILL_PARENT,
              TableRow.LayoutParams.WRAP_CONTENT));
  
      /* Create a Button to be the row-content. */
      Button b = new Button(this);
      b.setText("Dynamic Button");
      b.setLayoutParams(new TableRow.LayoutParams(
              TableRow.LayoutParams.FILL_PARENT,
              TableRow.LayoutParams.WRAP_CONTENT));
      /* Add Button to row. */
  
      tr.addView(b);
      Button a = new Button(this);
      a.setText("Dynamic Button");
      a.setLayoutParams(new TableRow.LayoutParams(
              TableRow.LayoutParams.FILL_PARENT,
              TableRow.LayoutParams.WRAP_CONTENT));
      /* Add Button to row. */
      a.setGravity(2);
  
      tr.addView(a);
  </code></pre>
  
  <p>But I fail to see how changing</p>
  
  <pre><code>tr.setLayoutParams
  </code></pre>
  
  <p>Will do the job of making for example the first button column 70% and the other button the 30%</p>