Example usage for android.support.v4.view PagerAdapter POSITION_NONE

List of usage examples for android.support.v4.view PagerAdapter POSITION_NONE

Introduction

In this page you can find the example usage for android.support.v4.view PagerAdapter POSITION_NONE.

Prototype

int POSITION_NONE

To view the source code for android.support.v4.view PagerAdapter POSITION_NONE.

Click Source Link

Usage

From source file:am.widget.tabstrip.TabStripDotAdapter.java

/**
 * ?
 */
public void notifyDotChanged() {
    notifyChanged(getDotNotifyId(), PagerAdapter.POSITION_NONE, null);
}

From source file:com.android.deskclock.timer.TimerFragmentAdapter.java

@Override
public int getItemPosition(Object object) {
    // Force return NONE so that the adapter always assumes the item position has changed
    return PagerAdapter.POSITION_NONE;
}

From source file:com.sonymobile.androidapp.gridcomputing.adapters.ConditionsSlidePagerAdapter.java

@Override
public int getItemPosition(final Object object) {
    return PagerAdapter.POSITION_NONE;
}

From source file:com.robotsandpencils.walkthrough.presentation.main.paging.screens.ScreensAdapter.java

@Override
public int getItemPosition(Object object) {
    //noinspection SuspiciousMethodCalls
    if (!mLayouts.contains(object)) {
        return PagerAdapter.POSITION_NONE;
    }/*  w  w w  . j  a  va2 s  .c  o  m*/
    return super.getItemPosition(object);
}

From source file:com.poloure.simplerss.PagerAdapterTags.java

@Override
public int getItemPosition(Object object) {
    int pos = s_tagList.indexOf(object);
    return -1 == pos ? PagerAdapter.POSITION_NONE : pos;
}

From source file:org.jitsi.android.gui.chat.ChatPagerAdapter.java

/**
 * Returns the position of the given <tt>object</tt> in this pager.
 *
 * @return the position of the given <tt>object</tt> in this pager
 */// w  w  w . ja v a  2s.co m
@Override
public int getItemPosition(Object object) {
    int position;

    String id = ((ChatFragment) object).getChatSession().getChatId();

    synchronized (chats) {
        position = chats.indexOf(id);
    }

    if (position >= 0)
        return position;
    else
        return PagerAdapter.POSITION_NONE;
}

From source file:at.alladin.rmbt.android.adapter.result.QoSCategoryPagerAdapter.java

@Override
public int getItemPosition(Object object) {
    return PagerAdapter.POSITION_NONE;
}

From source file:com.bennyhuo.github.view.common.FragmentPagerAdapter.java

@Override
public void destroyItem(ViewGroup container, int position, Object object) {
    if (mCurTransaction == null) {
        mCurTransaction = mFragmentManager.beginTransaction();
    }// ww w. j a va  2s .c o  m
    if (DEBUG)
        Log.v(TAG, "Detaching item #" + getItemId(position) + ": f=" + object + " v="
                + ((Fragment) object).getView());
    if (getItemPosition(object) == PagerAdapter.POSITION_NONE) {
        mCurTransaction.remove((Fragment) object);
    } else {
        mCurTransaction.detach((Fragment) object);
    }
}

From source file:net.illusor.swipeplayer.activities.SwipePagerAdapter.java

@Override
public int getItemPosition(Object object) {
    if (object.equals(this.playlistFragment))
        return this.browserFolders.size();

    int index = this.browserFragments.indexOf(object);
    return index >= 0 ? PagerAdapter.POSITION_UNCHANGED : PagerAdapter.POSITION_NONE;
}

From source file:am.widget.tabstrip.TabStripView.java

/**
 * ??//from  w  w w . j  a va2s.c o  m
 *
 * @param downX ACTION_DOWN X??
 * @param downY ACTION_DOWN Y??
 * @param upX   ACTION_UP X??
 * @param upY   ACTION_UP Y??
 * @return ?
 */
protected int getClickedPosition(float downX, float downY, float upX, float upY) {
    return PagerAdapter.POSITION_NONE;
}