Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/natario1/nestedscrollcoordinatorlayout
A CoordinatorLayout that implements nested scrolling and propagates scroll events to parent views.
https://github.com/natario1/nestedscrollcoordinatorlayout
android android-fragments android-library android-ui coordinator-layout coordinatorlayout
Last synced: 6 days ago
JSON representation
A CoordinatorLayout that implements nested scrolling and propagates scroll events to parent views.
- Host: GitHub
- URL: https://github.com/natario1/nestedscrollcoordinatorlayout
- Owner: natario1
- License: apache-2.0
- Created: 2017-04-21T02:17:30.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-09-23T15:30:20.000Z (5 months ago)
- Last Synced: 2025-01-23T04:08:22.109Z (14 days ago)
- Topics: android, android-fragments, android-library, android-ui, coordinator-layout, coordinatorlayout
- Language: Java
- Size: 69.3 KB
- Stars: 63
- Watchers: 2
- Forks: 13
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NestedScrollCoordinatorLayout
```groovy
compile 'com.otaliastudios:nestedscrollcoordinatorlayout:1.0.3'
```A `CoordinatorLayout` that implements nested scrolling and propagates scroll events to parent views.
This is useful for nested Coordinators, e.g. for inner fragments in a parent activity.
By default, scroll events that take place inside the inner `CoordinatorLayout` won't reach the outer
coordinator, and thus they won't trigger scroll animations and so on.If `NestedScrollCoordinatorLayout` is used, events are correctly propagated.
## Usage
Just use `NestedScrollCoordinatorLayout` as the inner `CoordinatorLayout`.
```xml
```
You can have slight control over the scroll propagation behavior using
`NestedScrollCoordinatorLayout.setPassMode()`. Specifically:- `PASS_MODE_BOTH` (default): scroll events are passed to the parent stream and, at the same time,
to this Coordinator childs
- `PASS_MODE_PARENT_FIRST`: scroll events are passed to the parent stream and, if not consumed,
they go on to this Coordinator childs## Contributing
You are welcome to contribute with issues, PRs or suggestions.