Esempio n. 1
0
 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));
 }
Esempio n. 2
0
 //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));
 }