Android Open Source - luminous Location Page Adapter






From Project

Back to project page luminous.

License

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.

Java Source Code

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




Java Source Code List

de.denisulmer.luminous.v2.BackgroundTask.java
de.denisulmer.luminous.v2.Core.java
de.denisulmer.luminous.v2.DeviceListAdapter.java
de.denisulmer.luminous.v2.Device.java
de.denisulmer.luminous.v2.LocationFragment.java
de.denisulmer.luminous.v2.LocationPageAdapter.java
de.denisulmer.luminous.v2.MainActivity.java
de.denisulmer.luminous.v2.SetupActivity.java