title: How to shrink Columns to add new textview in 2nd line
body: <p>I have to add textviews horizontally according to the data I have in my array. I am able to add textviews but they are coming in single line. I want to add new text view in next line automatically when the width of the view in overreached. here is my code to add the text views. I am Using Table Layout to add textview dynamicaly.</p>
  
  <pre><code>     TableLayout artistsView = (TableLayout) findViewById(R.id.artists);
      String[] array = JBUtils.getInstance().splitTextByComma(vo.getStarcast());
      TableRow row = new TableRow(_context);
      TableLayout.LayoutParams params = new TableLayout.LayoutParams(TableLayout.LayoutParams.MATCH_PARENT, TableLayout.LayoutParams.WRAP_CONTENT);
      row.setLayoutParams(params);
      for (int i = 0; i &lt; array.length; i++)
      {
          TextView textView = new TextView(_context);
          textView.setText(array[i]);
          row.addView(textView);
      }
      artistsView.addView(row);
  </code></pre>