Android Open Source - FlashNotifier View Pager Adapter






From Project

Back to project page FlashNotifier.

License

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.

Java Source Code

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;
    }

}




Java Source Code List

com.pandanomic.flashnotifier.FragmentMainTab.java
com.pandanomic.flashnotifier.FragmentPrefsTab.java
com.pandanomic.flashnotifier.ListFragmentAccessTab.java
com.pandanomic.flashnotifier.Main.java
com.pandanomic.flashnotifier.PatternValidator.java
com.pandanomic.flashnotifier.SMSCallListener.java
com.pandanomic.flashnotifier.ViewPagerAdapter.java