public ClampViewPositionVertical ( Android.Views.View child, int top, int dy ) : int | ||
child | Android.Views.View | |
top | int | |
dy | int | |
return | int |
public override int ClampViewPositionVertical(View child, int top, int dy)
{
int topBound;
int bottomBound;
if (_panelLayout._isSlidingUp)
{
topBound = _panelLayout.SlidingTop;
bottomBound = topBound + _panelLayout._slideRange;
}
else
{
bottomBound = _panelLayout.PaddingTop;
topBound = bottomBound - _panelLayout._slideRange;
}
return Math.Min(Math.Max(top, topBound), bottomBound);
}