Back to project page SpeechWriter.
The source code is released under:
MIT License
If you think the Android project SpeechWriter 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 edu.psu.rcy5017.speechwriter.adapter; //from w ww . j a va2 s . c o m import java.util.List; import edu.psu.rcy5017.speechwriter.fragment.NoteCardFragement; import edu.psu.rcy5017.speechwriter.model.NoteCard; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; public class TabsPagerAdapter extends FragmentPagerAdapter { private final List<NoteCard> noteCardList; public TabsPagerAdapter(FragmentManager fm, List<NoteCard> noteCardList) { super(fm); this.noteCardList = noteCardList; } @Override public Fragment getItem(int index) { return new NoteCardFragement(noteCardList.get(index).getId()); } @Override public int getCount() { final int count = noteCardList.size(); return count; } }