public static void SetDpPadding(this RelativeLayout RelativeLayout, RtGraphicsLayouts RtGraphicsLayouts, int l, int t, int r, int b) { RelativeLayout.SetPadding(RtGraphicsLayouts.ConvertPxDp(l), RtGraphicsLayouts.ConvertPxDp(t), RtGraphicsLayouts.ConvertPxDp(r), RtGraphicsLayouts.ConvertPxDp(b)); }
//Set dp padding for a view of any of the below types public static void SetDpPadding(this TextView TextView, RtGraphicsLayouts RtGraphicsLayouts, int l, int t, int r, int b) { TextView.SetPadding(RtGraphicsLayouts.ConvertPxDp(l), RtGraphicsLayouts.ConvertPxDp(t), RtGraphicsLayouts.ConvertPxDp(r), RtGraphicsLayouts.ConvertPxDp(b)); }