title: Positioning ImageView in two lines programmatically
body: <p>I have a code which generate several ImageView and put it on Layout.</p>
  
  <pre><code>for (int i = 0; i &lt; NUMBER_OF_MATCHES; i++) {
          imageView = new ImageView(this);
          if (random.nextBoolean()) {
          imageView.setImageResource(R.drawable.match);
          } else {
              imageView.setImageResource(R.drawable.match_inverse);
  
          }
          gameLinearLayout.addView(imageView, 0, params);
      }
  </code></pre>
  
  <p>But all images are in one line. I want to place it in two lines. Which layout to use and how to fix code for working correctly?</p>