本文整理匯總了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;
}