Lines Matching defs:position

102         int position;
111 return lhs.position - rhs.position;
189 // If the pager is at least this close to its final position, complete the scroll
230 * Indicates that the pager is in the process of settling to a final position.
252 * @param position Position index of the first page currently being displayed.
253 * Page position+1 will be visible if positionOffset is nonzero.
254 * @param positionOffset Value from [0, 1) indicating the offset from the page at position.
255 * @param positionOffsetPixels Value in pixels indicating the offset from position.
257 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels);
263 * @param position Position index of the new selected page.
265 public void onPageSelected(int position);
287 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
292 public void onPageSelected(int position) {
316 * @param position Position of page relative to the current front-and-center
317 * position of the pager. 0 is front and center. 1 is one full
318 * page position to the right, and -1 is one page position to the left.
320 public void transformPage(View page, float position);
408 mAdapter.destroyItem(this, ii.position, ii.object);
568 * the scroll position is changed. This allows the application to apply custom property
798 ItemInfo addNewItem(int position, int index) {
800 ii.position = position;
801 ii.object = mAdapter.instantiateItem(this, position);
802 ii.widthFactor = mAdapter.getPageWidth(position);
836 mAdapter.destroyItem(this, ii.position, ii.object);
839 if (mCurItem == ii.position) {
847 if (ii.position != newPos) {
848 if (ii.position == mCurItem) {
849 // Our current item changed position. Follow it.
853 ii.position = newPos;
897 // fling to a new position until we have finished the scroll to
898 // that position, avoiding glitches from happening at that point.
923 if (ii.position >= mCurItem) {
924 if (ii.position == mCurItem) curItem = ii;
946 if (pos == ii.position && !ii.scrolling) {
957 } else if (ii != null && pos == ii.position) {
978 if (pos == ii.position && !ii.scrolling) {
987 } else if (ii != null && pos == ii.position) {
1006 Log.i(TAG, "#" + i + ": page " + mItems.get(i).position);
1034 lp.position = ii.position;
1046 if (ii == null || ii.position != mCurItem) {
1050 if (ii != null && ii.position == mCurItem) {
1066 final int oldCurPosition = oldCurInfo.position;
1068 if (oldCurPosition < curItem.position) {
1073 pos <= curItem.position && itemIndex < mItems.size(); pos++) {
1075 while (pos > ii.position && itemIndex < mItems.size() - 1) {
1079 while (pos < ii.position) {
1088 } else if (oldCurPosition > curItem.position) {
1093 pos >= curItem.position && itemIndex >= 0; pos--) {
1095 while (pos < ii.position && itemIndex > 0) {
1099 while (pos > ii.position) {
1114 int pos = curItem.position - 1;
1115 mFirstOffset = curItem.position == 0 ? curItem.offset : -Float.MAX_VALUE;
1116 mLastOffset = curItem.position == N - 1 ?
1121 while (pos > ii.position) {
1126 if (ii.position == 0) mFirstOffset = offset;
1129 pos = curItem.position + 1;
1133 while (pos < ii.position) {
1136 if (ii.position == N - 1) {
1153 int position;
1164 out.writeInt(position);
1172 + " position=" + position + "}";
1192 position = in.readInt();
1202 ss.position = mCurItem;
1221 setCurrentItemInternal(ss.position, false, true);
1223 mRestoredCurItem = ss.position;
1276 ItemInfo infoForPosition(int position) {
1279 if (ii.position == position) {
1391 // Make sure scroll position is set correctly.
1571 final int currentPage = ii.position;
1589 * (e.g. super.onPageScrolled(position, offset, offsetPixels)) before onPageScrolled
1592 * @param position Position index of the first page currently being displayed.
1593 * Page position+1 will be visible if positionOffset is nonzero.
1594 * @param offset Value from [0, 1) indicating the offset from the page at position.
1595 * @param offsetPixels Value in pixels indicating the offset from position.
1597 protected void onPageScrolled(int position, float offset, int offsetPixels) {
1638 if (mSeenPositionMin < 0 || position < mSeenPositionMin) {
1639 mSeenPositionMin = position;
1641 if (mSeenPositionMax < 0 || FloatMath.ceil(position + offset) > mSeenPositionMax) {
1642 mSeenPositionMax = position + 1;
1646 mOnPageChangeListener.onPageScrolled(position, offset, offsetPixels);
1649 mInternalPageChangeListener.onPageScrolled(position, offset, offsetPixels);
1933 final int currentPage = ii.position;
1992 if (firstItem.position != 0) {
1996 if (lastItem.position != mAdapter.getCount() - 1) {
2023 * @return Info about the page at the current scroll position.
2039 if (!first && ii.position != lastPos + 1) {
2043 ii.position = lastPos + 1;
2044 ii.widthFactor = mAdapter.getPageWidth(ii.position);
2059 lastPos = ii.position;
2086 targetPage = Math.max(firstItem.position, Math.min(targetPage, lastItem.position));
2148 final int firstPos = ii.position;
2149 final int lastPos = mItems.get(itemCount - 1).position;
2151 while (pos > ii.position && itemIndex < itemCount) {
2156 if (pos == ii.position) {
2234 final int currentPage = ii.position;
2268 if (firstItem.position != 0) {
2271 if (lastItem.position != mAdapter.getCount() - 1) {
2519 if (ii != null && ii.position == mCurItem) {
2561 if (ii != null && ii.position == mCurItem) {
2591 if (ii != null && ii.position == mCurItem) {
2613 if (ii != null && ii.position == mCurItem &&
2711 * Where to position the view page within the overall ViewPager
2728 * Adapter position this view is for if !isDecor
2730 int position;
2758 return llp.position - rlp.position;