-
Notifications
You must be signed in to change notification settings - Fork 388
Slidr and ViewPager conflict #62
Comments
Hello,
slidrInterface is the interface obtained from the method of the library. This is how I use it with two tabs of a tablayout + viewpager. All perfectly working. If you have morethan two tabs you have only to do some little edit with the position variable. |
@GGLabCenter What about nested ViewPagers or ViewPagers inside fragments or horizontal RecyclerViews. |
Hello @2hamed , viewpagers inside fragments: same code as above, i used also in this way. the viewpager in fact is a statefragmentpageradapter that shows the current fragment, you can build your login from that; I did not try the library functions inside a recyclerview. You could try to disable the interface inside the recyclerview's listener and before exiting from the listener you can reactivate it. I believe in same way you can avoid to modify the library and achieve the same results. That said, you could clone the main repository and modify the library, then submit a pull request to the creator. In this way an eventual bug could be fixed :-) |
Hi there,
There is a problem with using Slidr with a ViewPager in which Slidr intercepts touch events from ViewPager making it impossible for ViewPager to swipe left.
Slidr should consider the ViewPager and lock the dragging when the ViewPager is not at its first page.
The text was updated successfully, but these errors were encountered: