private int GetClippedWidth(int viewHolderWidth, float dX, int measured)
        {
            if (viewHolderWidth <= 0)
            {
                return(0);
            }

            return(Math.Min(measured, (int)Math.Ceil(Math.Abs(dX))));
        }
Example #2
0
        public static int GetDisplayHeight(this Paint paint)
        {
            var fm = paint.GetFontMetrics();

            return((int)JavaMath.Ceil(fm.Descent - fm.Ascent));
        }