Lines Matching refs:lastPosition
440 private View fillFromBottom(int lastPosition, int nextBottom) {
441 lastPosition = Math.max(lastPosition, mSelectedPosition);
442 lastPosition = Math.min(lastPosition, mItemCount - 1);
444 final int invertedPosition = mItemCount - 1 - lastPosition;
445 lastPosition = mItemCount - 1 - (invertedPosition - (invertedPosition % mNumColumns));
447 return fillUp(lastPosition, nextBottom);
610 final int lastPosition = mFirstPosition + childCount - 1;
611 if (lastPosition == mItemCount - 1 && childCount > 0) {
668 final int lastPosition = mFirstPosition + childCount - 1;
672 if (topOffset > 0 && (lastPosition < mItemCount - 1 || lastBottom > end)) {
673 if (lastPosition == mItemCount - 1 ) {
680 if (lastPosition < mItemCount - 1) {
683 fillDown(lastPosition + (!mStackFromBottom ? 1 : numColumns),