Back to project page utexas-utilities.
The source code is released under:
Apache License
If you think the Android project utexas-utilities 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.nasageek.utexasutilities.adapters; /* w w w. j ava 2 s . c o m*/ import android.support.v4.app.FragmentManager; import com.actionbarsherlock.app.SherlockFragment; import java.util.List; public class MultiPanePagerAdapter extends MyFragmentPagerAdapter { /** * number of pages we want to display at once */ private int mPanesDisplayed; public MultiPanePagerAdapter(FragmentManager fm, List<SherlockFragment> fragments) { super(fm, fragments); mPanesDisplayed = 1; } public void setPagesDisplayed(int panes) { mPanesDisplayed = panes; } @Override public float getPageWidth(int position) { return (float) (1.0 / mPanesDisplayed); } }