Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ccb47564 authored by omarmt's avatar omarmt Committed by Omar Miatello
Browse files

Added LargeTopAppBarNestedScrollConnection

A NestedScrollConnection that listens for all vertical scroll events and
 responds in the
following way:
- If you **scroll up**, it **first brings the [height]** back to the
[minHeight] and then allows scrolling of the children (usually the
content).
- If you **scroll down**, it **first allows scrolling of the children**
(usually the content) and then resets the [height] to [maxHeight].
This behavior is useful for implementing a
[Large top app bar](https://m3.material.io/components/top-app-bar/specs)
 effect or something similar.

Test: atest LargeTopAppBarNestedScrollConnectionTest
Bug: 291025415
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:6b12c257c0d62cddab4041227348638472487241)
Change-Id: Idc0669d1a95b804acda9a5546ff3faa11e4c6e9c
parent baed8958
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment