params.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);

Not able to use above code in xamarin

Thanks, Ashik

有帮助吗?

解决方案

Use params.AddRule(LayoutRules.AlignParentRight); instead

其他提示

RelativeLayout.LayoutParams Aling_layout;
 Aling_layout = new RelativeLayout.LayoutParams(sizeBX , sizeBY);
 Aling_layout.AddRule(LayoutRules.AlignParentLeft);
 button.LayoutParameters = Aling_layout;
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top