public void applyStyle(MessagesListStyle style) { if (text != null) { text.SetTextColor(new Color(style.getDateHeaderTextColor())); text.SetTextSize(Android.Util.ComplexUnitType.Px, style.getDateHeaderTextSize()); text.SetTypeface(text.Typeface, TypefaceStyle.Normal); text.SetPadding(style.getDateHeaderPadding(), style.getDateHeaderPadding(), style.getDateHeaderPadding(), style.getDateHeaderPadding()); } }