本文整理汇总了Java中android.support.v4.view.ViewPager.OnPageChangeListener类的典型用法代码示例。如果您正苦于以下问题:Java OnPageChangeListener类的具体用法?Java OnPageChangeListener怎么用?Java OnPageChangeListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
OnPageChangeListener类属于android.support.v4.view.ViewPager包,在下文中一共展示了OnPageChangeListener类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setOnPageChangeListener
import android.support.v4.view.ViewPager.OnPageChangeListener; //导入依赖的package包/类
public void setOnPageChangeListener(OnPageChangeListener listener) {
this.delegatePageListener = listener;
}
示例2: setOnPageChangeListener
import android.support.v4.view.ViewPager.OnPageChangeListener; //导入依赖的package包/类
@Override
public void setOnPageChangeListener(OnPageChangeListener listener) {
mListener = listener;
}
示例3: setOnPageChangeListener
import android.support.v4.view.ViewPager.OnPageChangeListener; //导入依赖的package包/类
public void setOnPageChangeListener(OnPageChangeListener listener) {
this.delegatePageListener = listener;
}
示例4: setOnPageChangeListener
import android.support.v4.view.ViewPager.OnPageChangeListener; //导入依赖的package包/类
/** 设置监听,因为Tab会监听ViewPager的状态,所以不要给ViewPager设置监听了,设置给Tab,由Tab转发 */
public void setOnPageChangeListener(OnPageChangeListener listener) {
mDelegatePageListener = listener;
}
示例5: setOnPageChangeListener
import android.support.v4.view.ViewPager.OnPageChangeListener; //导入依赖的package包/类
public void setOnPageChangeListener(OnPageChangeListener listener) {
mListener = listener;
}
示例6: setOnPageChangeListener
import android.support.v4.view.ViewPager.OnPageChangeListener; //导入依赖的package包/类
public void setOnPageChangeListener(OnPageChangeListener listener) {
mListener = listener;
}
示例7: setListeners
import android.support.v4.view.ViewPager.OnPageChangeListener; //导入依赖的package包/类
private void setListeners() {
// ���õ��������
OnClickListener listener = new InnerOnClickListener();
rbTabMenuStation.setOnClickListener(listener);
rbTabMenuRoute.setOnClickListener(listener);
rbTabMenuTransfer.setOnClickListener(listener);
rbTabMenuMore.setOnClickListener(listener);
// ���û���������
OnPageChangeListener listener2 = new InnerOnPageChangeListener();
viewPager.setOnPageChangeListener(listener2);
// ����FragmentAdapter ������
OutlineFragmentAdapter adapter = new OutlineFragmentAdapter(
getSupportFragmentManager());
viewPager.setAdapter(adapter);
}
示例8: setOnPageChangeListener
import android.support.v4.view.ViewPager.OnPageChangeListener; //导入依赖的package包/类
public void setOnPageChangeListener(OnPageChangeListener pageChangeListener) {
this.delegatePageChangeListener = pageChangeListener;
}
示例9: setOnPageChangeListener
import android.support.v4.view.ViewPager.OnPageChangeListener; //导入依赖的package包/类
public void setOnPageChangeListener(OnPageChangeListener listener) {
delegatePageListener = listener;
}
示例10: setOnPageChangeListener
import android.support.v4.view.ViewPager.OnPageChangeListener; //导入依赖的package包/类
public void setOnPageChangeListener(OnPageChangeListener listener) {
this.mOnPageChangeListener = listener;
}
示例11: setOnPageChangeListener
import android.support.v4.view.ViewPager.OnPageChangeListener; //导入依赖的package包/类
@Override
public void setOnPageChangeListener(OnPageChangeListener listener) {
mListener = listener;
}