Home
last modified time | relevance | path

Searched refs:mFirstPosition (Results 1 – 2 of 2) sorted by relevance

/development/samples/Support7Demos/src/com/example/android/supportv7/widget/
DRecyclerViewActivity.java98 private int mFirstPosition; field in RecyclerViewActivity.MyLayoutManager
124 for (int i = 0; mFirstPosition + i < count && top < parentBottom; i++, top = bottom) { in onLayoutChildren()
125 View v = recycler.getViewForPosition(mFirstPosition + i); in onLayoutChildren()
161 if (mFirstPosition > 0 && scrolled > dy) { in scrollVerticallyBy()
162 mFirstPosition--; in scrollVerticallyBy()
163 View v = recycler.getViewForPosition(mFirstPosition); in scrollVerticallyBy()
182 if (scrolled < dy && state.getItemCount() > mFirstPosition + getChildCount()) { in scrollVerticallyBy()
183 View v = recycler.getViewForPosition(mFirstPosition + getChildCount()); in scrollVerticallyBy()
213 while (mFirstPosition > 0 && newViewsHeight < mScrollDistance) { in onFocusSearchFailed()
214 mFirstPosition--; in onFocusSearchFailed()
[all …]
DAnimatedRecyclerView.java189 private int mFirstPosition; field in AnimatedRecyclerView.MyLayoutManager
222 for (int i = 0; mFirstPosition + i < count && top < parentBottom; i++, top = bottom) { in onLayoutChildren()
223 View v = recycler.getViewForPosition(mFirstPosition + i); in onLayoutChildren()
259 if (position < mFirstPosition) { in onLayoutChildren()
260 newTop = view.getHeight() * (position - mFirstPosition); in onLayoutChildren()
299 if (mFirstPosition > 0 && scrolled > dy) { in scrollVerticallyBy()
300 mFirstPosition--; in scrollVerticallyBy()
301 View v = recycler.getViewForPosition(mFirstPosition); in scrollVerticallyBy()
319 if (scrolled < dy && state.getItemCount() > mFirstPosition + getChildCount()) { in scrollVerticallyBy()
320 View v = recycler.getViewForPosition(mFirstPosition + getChildCount()); in scrollVerticallyBy()
[all …]