*is this a bug of Android?*
*Why does the right margin is higher than the rest?*
*
*

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);

http://i.imgur.com/pix8D.png

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to