Back to project page Lessaging.
The source code is released under:
GNU General Public License
If you think the Android project Lessaging 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 fr.lessaging.adapters; /* w w w. ja v a2s. co m*/ import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentStatePagerAdapter; import java.util.ArrayList; public class ViewPagerAdapter extends FragmentStatePagerAdapter { private ArrayList<Fragment> pages; public ViewPagerAdapter(FragmentManager fm, ArrayList<Fragment> pages) { super(fm); this.pages = pages; } @Override public Fragment getItem(int position) { return pages.get(position); } @Override public int getItemPosition(Object object){ return POSITION_NONE; } @Override public int getCount() { return pages.size(); } @Override public CharSequence getPageTitle(int position) { CharSequence returnValue = null; switch (position) { case 0: returnValue = "SMS"; break; case 1: returnValue = "MMS"; break; } return returnValue; } }