Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MalikDE/NestedRecyclerView
Improve the scroll angle when 2 recyclers views are nested : a recycler view that contains other recycler views, just like the Play Store.
https://github.com/MalikDE/NestedRecyclerView
android kotlin kotlin-android layoutmanager library nested recyclerview ui ux
Last synced: 2 months ago
JSON representation
Improve the scroll angle when 2 recyclers views are nested : a recycler view that contains other recycler views, just like the Play Store.
- Host: GitHub
- URL: https://github.com/MalikDE/NestedRecyclerView
- Owner: MalikDE
- Created: 2017-08-28T21:36:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-12T07:00:35.000Z (over 4 years ago)
- Last Synced: 2024-08-03T03:04:45.343Z (6 months ago)
- Topics: android, kotlin, kotlin-android, layoutmanager, library, nested, recyclerview, ui, ux
- Language: Kotlin
- Homepage:
- Size: 3.13 MB
- Stars: 30
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-kotlin - NestedRecyclerView - Improve the scroll angle when 2 recyclers views are nested. (Libraries / Android)
README
## Improve scroll in nested Recycler Views
This piece of code aims to improve the scroll angle when 2 recyclers views are nested : a recycler view that contains other recycler views, just like the Play Store.The objective is to change the scroll angle in the Parent Recycler View and override the onInterceptTouchEvent method. When this method return `false`, the parent recycler view will not get the touch event. Instead, the
event will be dispatched to the underlying child view (another recycler view)### Classic
The classic implementation seems to be less than 45° to allow an horizontal scroll.### Improved
In the example bellow, angle is customized up to 70 degrees.