title: How to create buttons with a loop Android Studio
body: <p>I'm kinda new to programming, I was tring as exercise to create new buttons with a loop, but I cannot figure it out.
  I've tried:</p>
  
  <pre><code>int i;
      for(i=0; i&lt;10; i++){
          ImageButton btn[i]= (ImageButton) findViewById(R.id.btn);
      }
  </code></pre>
  
  <p>II pretty sure this is a stupid question, but I could not find the answer.</p>
  
  <p>Summing up my goal would be to do something like this:</p>
  
  <pre><code>loop{
      create_new_button();
  }
  </code></pre>