[mono-android] SetMargins for RelativeLayout doesn't work properly

Amir Waldman amirw2k at gmail.com
Wed Mar 16 20:05:59 EDT 2011


I was trying to  set margins via code for a RelativeLayout but it doesn't do
anything when you use RelativeLayout.LayoutParams, ViewGroup.LayoutParams or
ViewGroup.MarginLayoutParams.

Eventually I used LinearLayout.LayoutParams which surprisingly did the job.

 

Is there something wrong with the Android API or something missing for
MonoDroid?

 

 

 

Regards,

Amir

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/mailman/private/monodroid/attachments/20110317/5bcb10b0/attachment.html 


More information about the Monodroid mailing list