title: Create ImageViews dynamically inside a loop
body: <p>I have written this code that loads an image to in ImageView widget:</p>
  
  <pre><code>    protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.gallery);
      i = (ImageView)findViewById(R.id.imageView1);
  
      new get_image("https://www.google.com/images/srpr/logo4w.png") {
          ImageView imageView1 = new ImageView(GalleryActivity.this);
  
          ProgressDialog dialog = ProgressDialog.show(GalleryActivity.this, "", "Loading. Please wait...", true);
  
          protected void onPreExecute(){
               super.onPreExecute();
          }
  
           protected void onPostExecute(Boolean result) {
               i.setImageBitmap(bitmap); 
           dialog.dismiss();
           }
      }.execute();
  
  
  }
  </code></pre>
  
  <p>bu now, I want to load several images. for this I need create image views dynamically but i don't know how...</p>
  
  <p>I want run my code inside a for loop:</p>
  
  <pre><code>for(int i;i&lt;range;i++){
     //LOAD SEVERAL IMAGES. READ URL FROM AN ARRAY
  }
  </code></pre>
  
  <p>my main problem is creating several ImageViews inside a loop dynamically</p>