public void Apply(View view, ViewGroup.LayoutParams layoutParams) { if (Width.HasValue) { layoutParams.Width = Width.Value; } if (Height.HasValue) { layoutParams.Height = Height.Value; } if (MinHeight.HasValue) { view.SetMinimumHeight(MinHeight.Value); } if (MinWidth.HasValue) { view.SetMinimumWidth(MinWidth.Value); } if (_frame != null) { _frame.Apply(view, layoutParams); } if (_linear != null) { _linear.Apply(view, layoutParams); } if (_margin != null) { _margin.Apply(view, layoutParams); } if (_padding != null) { _padding.Apply(view, layoutParams); } if (_relative != null) { _relative.Apply(view, layoutParams); } if (_row != null) { _row.Apply(view, layoutParams); } if (_text != null) { _text.Apply(view, layoutParams); } }