Back to project page Android-DirectionalViewPager.
The source code is released under:
Apache License
If you think the Android project Android-DirectionalViewPager 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.directionalviewpager.sample; //from w w w. j ava 2 s . c om import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; class TestFragmentAdapter extends FragmentPagerAdapter { protected static final String[] CONTENT = new String[] { "This", "Is Is", "A A A", "Test", }; public TestFragmentAdapter(FragmentManager fm) { super(fm); } @Override public Fragment getItem(int position) { return TestFragment.newInstance(CONTENT[position]); } @Override public int getCount() { return CONTENT.length; } }