Not working with view pager fragments
Opened this issue · 3 comments
aribhatt91 commented
Not working with view pager fragments
1gravity commented
- works fine in my app with ViewPager and fragments
- use addOnScrollListener instead of setOnScrollListener
The fault seems to be on your side
liya7907 commented
@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 commented
@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