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.java289 int scrolled = 0; in scrollVerticallyBy() local
293 while (scrolled > dy) { in scrollVerticallyBy()
296 final int scrollBy = Math.min(scrolled - dy, hangingTop); in scrollVerticallyBy()
297 scrolled -= scrollBy; in scrollVerticallyBy()
299 if (mFirstPosition > 0 && scrolled > dy) { in scrollVerticallyBy()
313 while (scrolled < dy) { in scrollVerticallyBy()
316 final int scrollBy = -Math.min(dy - scrolled, hangingBottom); in scrollVerticallyBy()
317 scrolled -= scrollBy; in scrollVerticallyBy()
319 if (scrolled < dy && state.getItemCount() > mFirstPosition + getChildCount()) { in scrollVerticallyBy()
332 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()