Home
last modified time | relevance | path

Searched refs:firstPosition (Results 1 – 8 of 8) sorted by relevance

/frameworks/support/v4/donut/android/support/v4/widget/
DListViewCompatDonut.java25 final int firstPosition = listView.getFirstVisiblePosition(); in scrollListBy() local
26 if (firstPosition == ListView.INVALID_POSITION) { in scrollListBy()
36 listView.setSelectionFromTop(firstPosition, newTop); in scrollListBy()
/frameworks/support/v4/java/android/support/v4/widget/
DListViewAutoScrollHelper.java55 final int firstPosition = target.getFirstVisiblePosition(); in canTargetScrollVertically() local
56 final int lastPosition = firstPosition + childCount; in canTargetScrollVertically()
68 if (firstPosition <= 0) { in canTargetScrollVertically()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
DDayPickerView.java322 int firstPosition = getFirstVisiblePosition(); in run() local
324 boolean scroll = firstPosition != 0 && lastPosition != getCount() - 1; in run()
345 final int firstPosition = getFirstVisiblePosition(); in getMostVisiblePosition() local
365 return firstPosition + mostVisibleIndex; in getMostVisiblePosition()
/frameworks/base/core/java/android/widget/
DAbsListView.java2043 final int firstPosition = mFirstPosition; in computeVerticalScrollOffset() local
2045 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() local
4517 if (adapter.isEnabled(firstPosition + i)) { in addTouchables()
5030 final int firstPosition = mFirstPosition;
[all …]
DListView.java1685 final int firstPosition = mFirstPosition; in layoutChildren() local
1689 recycleBin.addScrapView(getChildAt(i), firstPosition+i); in layoutChildren()
1692 recycleBin.fillActiveViews(childCount, firstPosition); in layoutChildren()
2943 final int firstPosition = mFirstPosition; in lookForSelectablePositionOnScreen() local
2947 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 …]
DGallery.java494 int firstPosition = mFirstPosition; in detachOffScreenChildren() local
508 mRecycler.put(firstPosition + n, child); in detachOffScreenChildren()
524 mRecycler.put(firstPosition + n, child); in detachOffScreenChildren()
DGridView.java1258 final int firstPosition = mFirstPosition; in layoutChildren() local
1263 recycleBin.addScrapView(getChildAt(i), firstPosition+i); in layoutChildren()
1266 recycleBin.fillActiveViews(childCount, firstPosition); in layoutChildren()
/frameworks/base/core/java/com/android/internal/widget/
DAutoScrollHelper.java900 final int firstPosition = target.getFirstVisiblePosition(); in canTargetScrollVertically() local
901 final int lastPosition = firstPosition + childCount; in canTargetScrollVertically()
913 if (firstPosition <= 0) { in canTargetScrollVertically()