Swipe layout not working inside viewpager.
See original GitHub issueI implemented swipe layout like the example and it worked perfectly, but when i moved the swipeRecyclerView inside a child fragment that is inside a ViewPager
, swipe doesn’t intercept touch event and instead, viewpager swipes the fragments…
What can i do to fix this?
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Swipe not working inside a viewpager · Issue #482 - GitHub
I have two fragments inside a view pager. Last fragment has a recycler view where I am trying to implement Swipe to Dismiss...
Read more >ScrollView inside ViewPager: swipe not working
In this case, you can do something that tests if the swipe is up/down, and then keep the touch, otherwise if the swipe...
Read more >ViewPager with FragmentPagerAdapter - CodePath Cliffnotes
Layout that allows the user to swipe left and right through "pages" of content which are usually different fragments. This is a common...
Read more >RecyclerView has scrolling issues within a ViewPager
1) When using an AppBarLayout(with tabs) along side a ViewPager that contains a RecyclerView, if you slowly swipe up or down the RecyclerView...
Read more >Create swipe views with tabs using ViewPager2
You can create swipe views using AndroidX's ViewPager2 widget. To use ViewPager2 and tabs, you need to add a dependency on ViewPager2 and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have read many blogs and sites with tipps… I only found one acceptable solution for me.
You have to make your own ViewPager class:
Use
setPagingEnabled(boolean)
to en/disable swipe for the ViewPager. Also a solution is to make this accessable via xml.I have a solution. Will post in an hour