title: How can i create add dynamically imageview below the previous one?
body: <p>this is my .xlm file. Sorry but i'm new in java and android. I want to add  new imageview, dynamically, on layout, and everyone will be below the previous one:</p>
  
  <p>` </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical" android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;ScrollView
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
           &gt;
          &lt;LinearLayout
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:orientation="vertical"
              android:id="@+id/frame1"&gt;
          &lt;/LinearLayout&gt;
      &lt;/ScrollView&gt;
  &lt;/LinearLayout&gt;
  `
  </code></pre>
  
  <p>and this is my for cycle:</p>
  
  <pre><code>`
  
  for (int i = 0;i &lt; num_max; i++){
                  name = String.valueOf(i) + ".jpg";
                  RelativeLayout.LayoutParams rlp = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.MATCH_PARENT);
                  rlp.addRule(RelativeLayout.BELOW);
                  rlp.addRule(RelativeLayout.ALIGN_START);
                  rlp.addRule(RelativeLayout.ALIGN_LEFT);
                  LinearLayout frameLayout = (LinearLayout) findViewById(R.id.frame1);
                  mImageView = new ImageView (this);
                  Bitmap bitmap = BitmapFactory.decodeFile(url_image+name);
                  mImageView.setImageBitmap(bitmap);
                  frameLayout.addView(mImageView,rlp);}
  </code></pre>
  
  <p>`</p>
  
  <p>but doesn't work. Can you help me?</p>