Searched refs:firstPosition (Results 1 – 8 of 8) sorted by relevance
25 final int firstPosition = listView.getFirstVisiblePosition(); in scrollListBy() local26 if (firstPosition == ListView.INVALID_POSITION) { in scrollListBy()36 listView.setSelectionFromTop(firstPosition, newTop); in scrollListBy()
55 final int firstPosition = target.getFirstVisiblePosition(); in canTargetScrollVertically() local56 final int lastPosition = firstPosition + childCount; in canTargetScrollVertically()68 if (firstPosition <= 0) { in canTargetScrollVertically()
322 int firstPosition = getFirstVisiblePosition(); in run() local324 boolean scroll = firstPosition != 0 && lastPosition != getCount() - 1; in run()345 final int firstPosition = getFirstVisiblePosition(); in getMostVisiblePosition() local365 return firstPosition + mostVisibleIndex; in getMostVisiblePosition()
2043 final int firstPosition = mFirstPosition; in computeVerticalScrollOffset() local2045 if (firstPosition >= 0 && childCount > 0) { in computeVerticalScrollOffset()2051 return Math.max(firstPosition * 100 - (top * 100) / height + in computeVerticalScrollOffset()2057 if (firstPosition == 0) { in computeVerticalScrollOffset()2059 } else if (firstPosition + childCount == count) { in computeVerticalScrollOffset()2062 index = firstPosition + childCount / 2; in computeVerticalScrollOffset()2064 return (int) (firstPosition + childCount * (index / (float) count)); in computeVerticalScrollOffset()4508 final int firstPosition = mFirstPosition; in addTouchables() local4517 if (adapter.isEnabled(firstPosition + i)) { in addTouchables()5030 final int firstPosition = mFirstPosition;[all …]
1685 final int firstPosition = mFirstPosition; in layoutChildren() local1689 recycleBin.addScrapView(getChildAt(i), firstPosition+i); in layoutChildren()1692 recycleBin.fillActiveViews(childCount, firstPosition); in layoutChildren()2943 final int firstPosition = mFirstPosition; in lookForSelectablePositionOnScreen() local2947 firstPosition; in lookForSelectablePositionOnScreen()2951 if (startPos < firstPosition) { in lookForSelectablePositionOnScreen()2952 startPos = firstPosition; in lookForSelectablePositionOnScreen()2959 && getChildAt(pos - firstPosition).getVisibility() == View.VISIBLE) { in lookForSelectablePositionOnScreen()2964 int last = firstPosition + getChildCount() - 1; in lookForSelectablePositionOnScreen()2967 firstPosition + getChildCount() - 1; in lookForSelectablePositionOnScreen()[all …]
494 int firstPosition = mFirstPosition; in detachOffScreenChildren() local508 mRecycler.put(firstPosition + n, child); in detachOffScreenChildren()524 mRecycler.put(firstPosition + n, child); in detachOffScreenChildren()
1258 final int firstPosition = mFirstPosition; in layoutChildren() local1263 recycleBin.addScrapView(getChildAt(i), firstPosition+i); in layoutChildren()1266 recycleBin.fillActiveViews(childCount, firstPosition); in layoutChildren()
900 final int firstPosition = target.getFirstVisiblePosition(); in canTargetScrollVertically() local901 final int lastPosition = firstPosition + childCount; in canTargetScrollVertically()913 if (firstPosition <= 0) { in canTargetScrollVertically()