Use params.AddRule(LayoutRules.AlignParentRight);
instead
How can set android:layout_alignParentRight="true" programmatically for a layout in android in xamarin?
-
30-06-2023 - |
Question
params.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
Not able to use above code in xamarin
Thanks, Ashik
Solution
OTHER TIPS
RelativeLayout.LayoutParams Aling_layout;
Aling_layout = new RelativeLayout.LayoutParams(sizeBX , sizeBY);
Aling_layout.AddRule(LayoutRules.AlignParentLeft);
button.LayoutParameters = Aling_layout;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow