/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/ |
H A D | RecyclerViewActivity.java | 98 private int mFirstPosition; field in class:RecyclerViewActivity.MyLayoutManager 124 for (int i = 0; mFirstPosition + i < count && top < parentBottom; i++, top = bottom) { 125 View v = recycler.getViewForPosition(mFirstPosition + i); 161 if (mFirstPosition > 0 && scrolled > dy) { 162 mFirstPosition--; 163 View v = recycler.getViewForPosition(mFirstPosition); 182 if (scrolled < dy && state.getItemCount() > mFirstPosition + getChildCount()) { 183 View v = recycler.getViewForPosition(mFirstPosition + getChildCount()); 213 while (mFirstPosition > 0 && newViewsHeight < mScrollDistance) { 214 mFirstPosition [all...] |
H A D | AnimatedRecyclerView.java | 426 private int mFirstPosition; field in class:AnimatedRecyclerView.MyLayoutManager 459 for (int i = 0; mFirstPosition + i < count && top < parentBottom; i++, top = bottom) { 460 View v = recycler.getViewForPosition(mFirstPosition + i); 496 if (position < mFirstPosition) { 497 newTop = view.getHeight() * (position - mFirstPosition); 536 if (mFirstPosition > 0 && scrolled > dy) { 537 mFirstPosition--; 538 View v = recycler.getViewForPosition(mFirstPosition); 556 if (scrolled < dy && state.getItemCount() > mFirstPosition + getChildCount()) { 557 View v = recycler.getViewForPosition(mFirstPosition [all...] |
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/ |
H A D | RecyclerViewActivity.java | 98 private int mFirstPosition; field in class:RecyclerViewActivity.MyLayoutManager 124 for (int i = 0; mFirstPosition + i < count && top < parentBottom; i++, top = bottom) { 125 View v = recycler.getViewForPosition(mFirstPosition + i); 161 if (mFirstPosition > 0 && scrolled > dy) { 162 mFirstPosition--; 163 View v = recycler.getViewForPosition(mFirstPosition); 182 if (scrolled < dy && state.getItemCount() > mFirstPosition + getChildCount()) { 183 View v = recycler.getViewForPosition(mFirstPosition + getChildCount()); 213 while (mFirstPosition > 0 && newViewsHeight < mScrollDistance) { 214 mFirstPosition [all...] |
H A D | AnimatedRecyclerView.java | 426 private int mFirstPosition; field in class:AnimatedRecyclerView.MyLayoutManager 459 for (int i = 0; mFirstPosition + i < count && top < parentBottom; i++, top = bottom) { 460 View v = recycler.getViewForPosition(mFirstPosition + i); 496 if (position < mFirstPosition) { 497 newTop = view.getHeight() * (position - mFirstPosition); 536 if (mFirstPosition > 0 && scrolled > dy) { 537 mFirstPosition--; 538 View v = recycler.getViewForPosition(mFirstPosition); 556 if (scrolled < dy && state.getItemCount() > mFirstPosition + getChildCount()) { 557 View v = recycler.getViewForPosition(mFirstPosition [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | Gallery.java | 180 * If true, mFirstPosition is the position of the rightmost child, and 430 View extremeChild = getChildAt(extremeItemPosition - mFirstPosition); 494 int firstPosition = mFirstPosition; 535 mFirstPosition += count; 613 int newPos = mFirstPosition + newSelectedChildIndex; 672 * mFirstPosition will be decreased as we add views to the left later 675 mFirstPosition = mSelectedPosition; 719 curPosition = mFirstPosition + numChildren; 723 mFirstPosition = curPosition = mItemCount - 1; 748 curPosition = mFirstPosition [all...] |
H A D | GridView.java | 268 int position = mFirstPosition + count; 281 int position = mFirstPosition; 324 setVisibleRangeHint(mFirstPosition, mFirstPosition + getChildCount() - 1); 419 mFirstPosition = pos; 425 mFirstPosition = Math.max(0, pos + 1); 428 setVisibleRangeHint(mFirstPosition, mFirstPosition + getChildCount() - 1); 433 * Fills the list from top to bottom, starting with mFirstPosition 441 mFirstPosition [all...] |
H A D | ListView.java | 293 if (mFirstPosition != 0) { 307 if (mFirstPosition + childCount < mItemCount) { 640 return (mFirstPosition > 0) || (getChildAt(0).getTop() > listTop); 649 final int lastVisiblePosition = mFirstPosition + childCount - 1; 750 fillDown(mFirstPosition + count, startOffset); 759 fillUp(mFirstPosition - 1, startOffset); 795 setVisibleRangeHint(mFirstPosition, mFirstPosition + getChildCount() - 1); 828 mFirstPosition = pos + 1; 829 setVisibleRangeHint(mFirstPosition, mFirstPositio [all...] |
H A D | AdapterView.java | 71 int mFirstPosition = 0; field in class:AdapterView 643 return mFirstPosition + i; 659 return mFirstPosition; 669 return mFirstPosition + getChildCount() - 1; 1251 View v = getChildAt(mSelectedPosition - mFirstPosition); 1262 if (mFirstPosition >= 0 && mFirstPosition < adapter.getCount()) { 1263 mSyncRowId = adapter.getItemId(mFirstPosition); 1267 mSyncPosition = mFirstPosition; 1281 encoder.addProperty("scrolling:firstPosition", mFirstPosition); [all...] |
H A D | AbsSpinner.java | 266 final int position = mFirstPosition; 281 boolean shouldAnimate = animate && mFirstPosition <= position && 282 position <= mFirstPosition + getChildCount() - 1; 316 return getChildAt(mSelectedPosition - mFirstPosition); 366 return mFirstPosition + i;
|
H A D | AbsListView.java | 1171 final int firstPos = mFirstPosition; 1474 mFastScroll.onScroll(mFirstPosition, getChildCount(), mItemCount); 1477 mOnScrollListener.onScroll(this, mFirstPosition, getChildCount(), mItemCount); 1485 // Since this class calls onScrollChanged even if the mFirstPosition and the 1823 if (haveChildren && mFirstPosition > 0) { 1835 int firstPos = mFirstPosition; 2001 mFirstPosition = 0; 2047 final int firstPosition = mFirstPosition; 2096 if (mFirstPosition > 0) { 2113 if (mFirstPosition [all...] |
H A D | DropDownListView.java | 246 final View motionView = getChildAt(mMotionPosition - mFirstPosition); 268 final View motionView = getChildAt(mMotionPosition - mFirstPosition);
|
H A D | ExpandableListView.java | 389 for (int i = 0, childFlPos = mFirstPosition - headerViewsCount; i < childCount; 522 int flatListPosition = childIndex + mFirstPosition;
|
H A D | Spinner.java | 657 mFirstPosition = mSelectedPosition;
|
/frameworks/ex/widget/java/com/android/ex/widget/ |
H A D | StaggeredGridView.java | 67 * - mFirstPosition is the adapter position of the View returned by getChildAt(0). 68 * - Any child index can be translated to an adapter position by adding mFirstPosition. 69 * - Any adapter position can be translated to a child index by subtracting mFirstPosition. 70 * - Views for items in the range [mFirstPosition, mFirstPosition + getChildCount()) are 115 private int mFirstPosition; field in class:StaggeredGridView 275 return mFirstPosition; 398 overhang = fillUp(mFirstPosition - 1, allowOverhang); 401 overhang = fillDown(mFirstPosition + getChildCount(), allowOverhang) + mItemMargin; 432 if (mFirstPosition ! [all...] |