Back to project page Lollipop-AppCompat-Widgets-Skeleton.
The source code is released under:
Apache License
If you think the Android project Lollipop-AppCompat-Widgets-Skeleton 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.sachinshinde.lollipopappcompatskeleton.ui.adapters; /*from ww w .ja va 2 s. c o m*/ import android.content.Context; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import com.sachinshinde.lollipopappcompatskeleton.ui.fragments.Activity1Fragment; public class SampleAdapter extends FragmentPagerAdapter { Context ctxt=null; public SampleAdapter(Context ctxt, FragmentManager mgr) { super(mgr); this.ctxt=ctxt; } @Override public int getCount() { return(3); } @Override public Fragment getItem(int position) { return(Activity1Fragment.newInstance(position)); } @Override public String getPageTitle(int position) { return(Activity1Fragment.getTitle(position)); } }