Searched refs:firstPosition (Results 1 – 5 of 5) sorted by relevance
900 final int firstPosition = target.getFirstVisiblePosition(); in canTargetScrollVertically() local901 final int lastPosition = firstPosition + childCount; in canTargetScrollVertically()913 if (firstPosition <= 0) { in canTargetScrollVertically()
2077 final int firstPosition = mFirstPosition; in computeVerticalScrollOffset() local2079 if (firstPosition >= 0 && childCount > 0) { in computeVerticalScrollOffset()2085 return Math.max(firstPosition * 100 - (top * 100) / height + in computeVerticalScrollOffset()2091 if (firstPosition == 0) { in computeVerticalScrollOffset()2093 } else if (firstPosition + childCount == count) { in computeVerticalScrollOffset()2096 index = firstPosition + childCount / 2; in computeVerticalScrollOffset()2098 return (int) (firstPosition + childCount * (index / (float) count)); in computeVerticalScrollOffset()4661 final int firstPosition = mFirstPosition; in addTouchables() local4670 if (adapter.isEnabled(firstPosition + i)) { in addTouchables()5208 final int firstPosition = mFirstPosition;[all …]
1779 final int firstPosition = mFirstPosition; in layoutChildren() local1783 recycleBin.addScrapView(getChildAt(i), firstPosition+i); in layoutChildren()1786 recycleBin.fillActiveViews(childCount, firstPosition); in layoutChildren()3052 final int firstPosition = mFirstPosition; in lookForSelectablePositionOnScreen() local3056 firstPosition; in lookForSelectablePositionOnScreen()3060 if (startPos < firstPosition) { in lookForSelectablePositionOnScreen()3061 startPos = firstPosition; in lookForSelectablePositionOnScreen()3068 && getChildAt(pos - firstPosition).getVisibility() == View.VISIBLE) { in lookForSelectablePositionOnScreen()3073 int last = firstPosition + getChildCount() - 1; in lookForSelectablePositionOnScreen()3076 firstPosition + getChildCount() - 1; in lookForSelectablePositionOnScreen()[all …]
508 int firstPosition = mFirstPosition; in detachOffScreenChildren() local522 mRecycler.put(firstPosition + n, child); in detachOffScreenChildren()538 mRecycler.put(firstPosition + n, child); in detachOffScreenChildren()
1279 final int firstPosition = mFirstPosition; in layoutChildren() local1284 recycleBin.addScrapView(getChildAt(i), firstPosition+i); in layoutChildren()1287 recycleBin.fillActiveViews(childCount, firstPosition); in layoutChildren()