Пример #1
0
 // apply a layout rule
 static void ApplyRule(Android.Widget.RelativeLayout.LayoutParams lp, LayoutRule rule)
 {
     if (rule.Subject.HasValue)
     {
         lp.AddRule(rule, rule.Subject.Value);
     }
     else
     {
         lp.AddRule(rule);
     }
 }
Пример #2
0
 // remove a layout rule
 static void RemoveRule(Android.Widget.RelativeLayout.LayoutParams lp, LayoutRule rule)
 {
     lp.RemoveRule(rule.Verb);
 }