This comes to resolve many issues with SwipeRefreshLayout but based on a lot of debugging. As a result the code is somewhat brittle. Because we'd control responding to touches and updating the UI we need to be as swift as possible and as such to differentiate between possible gestures I am some simple layman's ways of doing this and GestureDetector / ScaleDetector instances since they would add to the execution time and overall complexity, and their callbacks would be hard to synchronize.
Android Components > UI > Widgets
The standard set of Mozilla widgets.
Usage
Setting up the dependency
Use Gradle to download the library from maven.mozilla.org (Setup repository):
implementation "org.mozilla.components:ui-widgets:{latest-version}"
License
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/