Skip to content
New issue

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

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

Already on GitHub? # to your account

Not working with view pager fragments #57

Open
aribhatt91 opened this issue Feb 26, 2016 · 3 comments
Open

Not working with view pager fragments #57

aribhatt91 opened this issue Feb 26, 2016 · 3 comments

Comments

@aribhatt91
Copy link

No description provided.

@aribhatt91 aribhatt91 changed the title setOnScrollListener is deprecated. How to deal with this? Not working with view pager fragments Mar 1, 2016
@1gravity
Copy link

1gravity commented May 27, 2016

  • works fine in my app with ViewPager and fragments
  • use addOnScrollListener instead of setOnScrollListener

The fault seems to be on your side

@liya7907
Copy link

liya7907 commented Aug 1, 2017

@1gravity in my app,fragments with viewpager is not work ,Error : "java.lang.NullPointerException: Attempt to invoke virtual method 'android.support.v7.widget.RecyclerView$LayoutManager android.support.v7.widget.RecyclerView.getLayoutManager()' on a null object reference"
It does not seem to matter with the way of listener was set up.

@abhishekgargx
Copy link

@liya7907 there is no support for staggered or grid layout (as i found)...
and one more thing is that , you inflating same_fragment.xml (which contains recycler view and fast scroller), in most of tabs, make sure that you connect fastscroller in every tab page of fragment which inflating the same_fragment.xml .... hope this will helps

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

No branches or pull requests

4 participants