title: How to create a new LinearLayout for each three button?
body: <p>I want to create a new <code>LinearLayout</code> for each three buttons created. What I want is to order numbers, something like this:</p>
  
  <pre><code>1   2   3
  4   5   6
  7   8   9
  </code></pre>
  
  <p>To do that. I need to create a new <code>LinearLayout</code> as <code>HORIZONTAL</code>. But how to create a new <code>LinearLayout</code> in loop?</p>
  
  <pre><code>for (int i=1:i&lt;=9:i++) {
      Button b = new Button(this);
      b.setText(""+i);
      // I need to do something here and put my general layout
  }
  </code></pre>