Back to project page FlashNotifier.
The source code is released under:
Apache License
If you think the Android project FlashNotifier listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.pandanomic.flashnotifier; /*ww w. j a v a2 s . com*/ import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; public class ViewPagerAdapter extends FragmentPagerAdapter { // Declare the number of ViewPager pages final int PAGE_COUNT = 2; public ViewPagerAdapter(FragmentManager fm) { super(fm); } @Override public Fragment getItem(int arg0) { switch (arg0) { // Open FragmentMainTab.java case 0: return new FragmentMainTab(); // Open ListFragmentAccessTab.java case 1: return new ListFragmentAccessTab(); } return null; } @Override public int getCount() { // TODO Auto-generated method stub return PAGE_COUNT; } }