Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work when multiple pages are visible. #32

Open
osrl opened this issue May 5, 2015 · 2 comments
Open

Doesn't work when multiple pages are visible. #32

osrl opened this issue May 5, 2015 · 2 comments
Assignees

Comments

@osrl
Copy link

osrl commented May 5, 2015

I override PagerAdapter.getPageWidth:

@Override
public float getPageWidth(int position) {
    return 0.5f;
}
@ToxicBakery
Copy link
Owner

Can you please be more descriptive. It is hard to help when the issue is vague. What output did you get and what output did you expect. Example projects are best for conveying problems.

@osrl
Copy link
Author

osrl commented May 6, 2015

I've added these to your demo app:

In your activity_main.xml

android:paddingLeft="160dp"
android:paddingRight="160dp"
android:clipToPadding="false"

In your pager adapter:

    @Override
    public float getPageWidth(int position) {
        return 1.5f;
    }

In your onCreate:

    mPager.setPageMargin(6);
    mPager.setOffscreenPageLimit(9);

I choose ZoomOutSlideTransformer from the spinner. Expected behaviour is; center page should be bigger, and should slide zoom out when scrolled.

I hope I was explanatory.

@ToxicBakery ToxicBakery self-assigned this May 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants