title: Android. that this does not work well? is a bug? SetMargins
body: <p>By setting the margins to zero the image fills the screen. But to set the margins to one hundred, it fits all right except the right side. Why do it?</p>
  <hr />
  <pre><code>ImageView imagen = new ImageView(this);
  RelativeLayout relative = new RelativeLayout(this);
  RelativeLayout.LayoutParams labelLayoutParams = new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
  relative.setLayoutParams(labelLayoutParams);
  RelativeLayout rl = new RelativeLayout(this);
  RelativeLayout.LayoutParams layoutImagenClicker = new RelativeLayout.LayoutParams
  (RelativeLayout.LayoutParams.FILL_PARENT, RelativeLayout.LayoutParams.FILL_PARENT);
  layoutImagenClicker.setMargins(0, 0, 0, 0);
  imagen.setBackgroundResource(R.drawable.barra_seek_bar);
  imagen.setLayoutParams(layoutImagenClicker);
  rl.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT));
  rl.addView(imagen);
  relative.addView(rl);
  setContentView(relative);
      
  </code></pre>
  <p><img src="https://i.imgur.com/jlzLn.png" alt="paddins zero image" /></p>
  <hr />
  <pre><code>ImageView imagen = new ImageView(this);
  RelativeLayout relative = new RelativeLayout(this);
  RelativeLayout.LayoutParams labelLayoutParams = new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
  relative.setLayoutParams(labelLayoutParams);
  RelativeLayout rl = new RelativeLayout(this);
  RelativeLayout.LayoutParams layoutImagenClicker = new RelativeLayout.LayoutParams
  (RelativeLayout.LayoutParams.FILL_PARENT, RelativeLayout.LayoutParams.FILL_PARENT);
  layoutImagenClicker.setMargins(100, 100, 100, 100);
  imagen.setBackgroundResource(R.drawable.barra_seek_bar);
  imagen.setLayoutParams(layoutImagenClicker);
  rl.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT));
  rl.addView(imagen);
  relative.addView(rl);
  setContentView(relative);
  </code></pre>
  <p><img src="https://i.imgur.com/pix8D.png" alt="paddins image one hundred" /></p>
  <hr />
  <p><strong>different margins with the same padding?</strong></p>
  <pre><code>layoutImagenClicker.setMargins(0, 0, 0, 0);
  layoutImagenClicker.setMargins(100, 100, 100, 100);
  </code></pre>
  <hr />
  <p>watch this!</p>
  <pre><code>layoutImagenClicker.setMargins(100, 100, 200, 100);
  </code></pre>
  <p><img src="https://i.imgur.com/jaKSv.png" alt="a busy cat" /></p>
  <p>The same result set margin right 100 or 200. is this a bug?</p>