Back to project page luminous.
The source code is released under:
GNU General Public License
If you think the Android project luminous 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 de.denisulmer.luminous.v2; /* www.j a v a 2 s .c o m*/ import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import java.util.List; public class LocationPageAdapter extends FragmentPagerAdapter { private List<Fragment> mFragments; public LocationPageAdapter(FragmentManager fm, List<Fragment> fragments) { super(fm); this.mFragments = fragments; } @Override public Fragment getItem(int position) { return this.mFragments.get(position % mFragments.size()); } @Override public int getCount() { return this.mFragments.size(); } @Override public CharSequence getPageTitle (int position) { return ((LocationFragment) this.mFragments.get(position % mFragments.size())).getTitle(); } }