Cheesebaron.SlidingUpPanel.SlidingUpPanelLayout.SmoothSlideTo C# (CSharp) Method

SmoothSlideTo() private method

private SmoothSlideTo ( float slideOffset ) : bool
slideOffset float
return bool
        private bool SmoothSlideTo(float slideOffset)
        {
            if (!_canSlide) return false;

            var y = _isSlidingUp
                ? (int) (SlidingTop + slideOffset * _slideRange)
                : (int) (SlidingTop - slideOffset * _slideRange);

            if (!_dragHelper.SmoothSlideViewTo(_slideableView, _slideableView.Left, y)) return false;

            SetAllChildrenVisible();
            ViewCompat.PostInvalidateOnAnimation(this);
            return true;
        }