title: An issue with layout params of relative layout
body: <p>I am having an issue with my app, basically i have few layouts like this:
  |ABC| 
  each letter describe one layout(A is the relative layout).
  When i am adding an image view to the relative layout, this image view 
  can move over all the layout. But the relative layout became stretched to whole the width of the screen.
  |A|
  so basically you can`t see the B,C layouts any more.</p>
  
  <p>This is my function:</p>
  
  <pre><code>public void startGame(){
      int i;
      for(i=0;i&lt;currentLevelObs.size();i++){
          if(currentLevelObs.get(i)==Globals.OBS_ENTRY_INDEX)
              break;
      }
  
  
      lp = new RelativeLayout.LayoutParams(
                       RelativeLayout.LayoutParams.FILL_PARENT,
                       RelativeLayout.LayoutParams.FILL_PARENT);
      lp.addRule(RelativeLayout.BELOW, (i+1));
      lp.addRule(RelativeLayout.RIGHT_OF, i);
      lp.leftMargin = 25;
  
  
      ImageView img = new ImageView(this);
      img.setLayoutParams(lp);
      img.setBackgroundResource(R.drawable.hero);
      gameLayout.addView(img);
  
  }
  </code></pre>
  
  <p>This function called from onCreate method.</p>