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

add OnPageChangeListener to ScrollGalleryView #27

Closed
alexodus opened this issue Mar 9, 2016 · 3 comments
Closed

add OnPageChangeListener to ScrollGalleryView #27

alexodus opened this issue Mar 9, 2016 · 3 comments

Comments

@alexodus
Copy link

alexodus commented Mar 9, 2016

public class ScrollGalleryView extends LinearLayout {
 ...
  public void addOnPageChangeListener(ViewPager.OnPageChangeListener listener) {
        viewPager.addOnPageChangeListener(listener);
  }
...
VEINHORN added a commit that referenced this issue Mar 15, 2016
@VEINHORN
Copy link
Owner

@alexodus Added. Thanks for your proposal. 👍
Now it may be used after setting up FragmentManager.

scrollGalleryView
                .setFragmentManager(getSupportFragmentManager())
                .addOnPageChangeListener(new ViewPager.OnPageChangeListener() {
                    @Override
                    public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {

                    }

                    @Override
                    public void onPageSelected(int position) {

                    }

                    @Override
                    public void onPageScrollStateChanged(int state) {

                    }
                });

@burakozturk16
Copy link

did you update library gradle version 1.0.6 for this change?

@moyamejiasr
Copy link

Could you help me please?
I'm using v 1.0.5 and I cannot use addOnPageChangeListener

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants