My code for that is:
RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(
width, height
);
lp.setMargins( x, y, 0, 0 );
child.setLayoutParams( lp );
Both child and the rel layout are dynamically created in my case,
maybe it makes a difference.
Pent
--
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