Lines Matching defs:item

484      * the current item and the specified item.
486 * @param item Item index to select
488 public void setCurrentItem(int item) {
490 setCurrentItemInternal(item, !mFirstLayout, false);
496 * @param item Item index to select
497 * @param smoothScroll True to smoothly scroll to the new item, false to transition immediately
499 public void setCurrentItem(int item, boolean smoothScroll) {
501 setCurrentItemInternal(item, smoothScroll, false);
508 void setCurrentItemInternal(int item, boolean smoothScroll, boolean always) {
509 setCurrentItemInternal(item, smoothScroll, always, 0);
512 void setCurrentItemInternal(int item, boolean smoothScroll, boolean always, int velocity) {
517 if (!always && mCurItem == item && mItems.size() != 0) {
522 if (item < 0) {
523 item = 0;
524 } else if (item >= mAdapter.getCount()) {
525 item = mAdapter.getCount() - 1;
528 if (item > (mCurItem + pageLimit) || item < (mCurItem - pageLimit)) {
536 final boolean dispatchSelected = mCurItem != item;
541 mCurItem = item;
543 mOnPageChangeListener.onPageSelected(item);
546 mInternalPageChangeListener.onPageSelected(item);
550 populate(item);
551 scrollToItem(item, smoothScroll, velocity, dispatchSelected);
555 private void scrollToItem(int item, boolean smoothScroll, int velocity,
557 final ItemInfo curInfo = infoForPosition(item);
567 mOnPageChangeListener.onPageSelected(item);
570 mInternalPageChangeListener.onPageSelected(item);
574 mOnPageChangeListener.onPageSelected(item);
577 mInternalPageChangeListener.onPageSelected(item);
873 // Keep the current item in the valid range
882 // Our current item changed position. Follow it.
964 " Expected adapter item count: " + mExpectedAdapterCount + ", found: " + N +
970 // Locate the currently focused item or add it if needed.
987 // If we have no current item we have no work to do.
1141 // We don't have an item populated for this,
1161 // We don't have an item populated for this,
2107 // Create a synthetic item for a missing page.