Home
last modified time | relevance | path

Searched refs:scrolled (Results 1 – 3 of 3) sorted by relevance

/development/samples/Support7Demos/src/com/example/android/supportv7/widget/
DRecyclerViewActivity.java151 int scrolled = 0; in scrollVerticallyBy() local
155 while (scrolled > dy) { in scrollVerticallyBy()
158 final int scrollBy = Math.min(scrolled - dy, hangingTop); in scrollVerticallyBy()
159 scrolled -= scrollBy; in scrollVerticallyBy()
161 if (mFirstPosition > 0 && scrolled > dy) { in scrollVerticallyBy()
175 while (scrolled < dy) { in scrollVerticallyBy()
179 final int scrollBy = -Math.min(dy - scrolled, hangingBottom); in scrollVerticallyBy()
180 scrolled -= scrollBy; in scrollVerticallyBy()
182 if (scrolled < dy && state.getItemCount() > mFirstPosition + getChildCount()) { in scrollVerticallyBy()
195 return scrolled; in scrollVerticallyBy()
DAnimatedRecyclerView.java533 int scrolled = 0; in scrollVerticallyBy() local
537 while (scrolled > dy) { in scrollVerticallyBy()
540 final int scrollBy = Math.min(scrolled - dy, hangingTop); in scrollVerticallyBy()
541 scrolled -= scrollBy; in scrollVerticallyBy()
543 if (mFirstPosition > 0 && scrolled > dy) { in scrollVerticallyBy()
557 while (scrolled < dy) { in scrollVerticallyBy()
560 final int scrollBy = -Math.min(dy - scrolled, hangingBottom); in scrollVerticallyBy()
561 scrolled -= scrollBy; in scrollVerticallyBy()
563 if (scrolled < dy && state.getItemCount() > mFirstPosition + getChildCount()) { in scrollVerticallyBy()
576 return scrolled; in scrollVerticallyBy()
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/
DCandidateView.java177 final boolean scrolled = mScrolled; in onDraw()
189 if (touchX + scrollX >= x && touchX + scrollX < x + wordWidth && !scrolled) { in onDraw()