Skip to content

Commit

Permalink
remove unused BasePagerAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
liruqi committed Mar 1, 2013
1 parent a1710a7 commit b8823b8
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions example/src/com/slidingmenu/example/BaseActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,33 +67,4 @@ public boolean onCreateOptionsMenu(Menu menu) {
getSupportMenuInflater().inflate(R.menu.main, menu);
return true;
}

public class BasePagerAdapter extends FragmentPagerAdapter {
private List<Fragment> mFragments = new ArrayList<Fragment>();
private ViewPager mPager;

public BasePagerAdapter(FragmentManager fm, ViewPager vp) {
super(fm);
mPager = vp;
mPager.setAdapter(this);
for (int i = 0; i < 3; i++) {
addTab(new SampleListFragment());
}
}

public void addTab(Fragment frag) {
mFragments.add(frag);
}

@Override
public Fragment getItem(int position) {
return mFragments.get(position);
}

@Override
public int getCount() {
return mFragments.size();
}
}

}

0 comments on commit b8823b8

Please sign in to comment.