private int GetClippedWidth(int viewHolderWidth, float dX, int measured) { if (viewHolderWidth <= 0) { return(0); } return(Math.Min(measured, (int)Math.Ceil(Math.Abs(dX)))); }
public static int GetDisplayHeight(this Paint paint) { var fm = paint.GetFontMetrics(); return((int)JavaMath.Ceil(fm.Descent - fm.Ascent)); }