Back to project page GlassTunes.
The source code is released under:
Apache License
If you think the Android project GlassTunes 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.glasstunes.screenslide; /*from www. j a v a 2 s.c om*/ import android.app.Fragment; import android.app.FragmentManager; public class BasicCardPagerAdapter extends ScreenSlidePagerAdapter { private CardFragment[] mCards; public BasicCardPagerAdapter(FragmentManager fm) { super(fm); } public void setCards(CardFragment... cards) { mCards = cards; notifyDataSetChanged(); } @Override public void onSelect(int position) { mCards[position].onSelect(); } @Override public Fragment getItem(int position) { return mCards == null ? null : mCards[position]; } @Override public int getCount() { return mCards == null ? 0 : mCards.length; } }