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()
2153 final int firstPosition = mFirstPosition; in computeVerticalScrollOffset() local2155 if (firstPosition >= 0 && childCount > 0) { in computeVerticalScrollOffset()2161 return Math.max(firstPosition * 100 - (top * 100) / height + in computeVerticalScrollOffset()2167 if (firstPosition == 0) { in computeVerticalScrollOffset()2169 } else if (firstPosition + childCount == count) { in computeVerticalScrollOffset()2172 index = firstPosition + childCount / 2; in computeVerticalScrollOffset()2174 return (int) (firstPosition + childCount * (index / (float) count)); in computeVerticalScrollOffset()4871 final int firstPosition = mFirstPosition; in addTouchables() local4880 if (adapter.isEnabled(firstPosition + i)) { in addTouchables()5441 final int firstPosition = mFirstPosition;[all …]
1777 final int firstPosition = mFirstPosition; in layoutChildren() local1781 recycleBin.addScrapView(getChildAt(i), firstPosition+i); in layoutChildren()1784 recycleBin.fillActiveViews(childCount, firstPosition); in layoutChildren()3050 final int firstPosition = mFirstPosition; in lookForSelectablePositionOnScreen() local3054 firstPosition; in lookForSelectablePositionOnScreen()3058 if (startPos < firstPosition) { in lookForSelectablePositionOnScreen()3059 startPos = firstPosition; in lookForSelectablePositionOnScreen()3066 && getChildAt(pos - firstPosition).getVisibility() == View.VISIBLE) { in lookForSelectablePositionOnScreen()3071 int last = firstPosition + getChildCount() - 1; in lookForSelectablePositionOnScreen()3074 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()