A library provides a layout to the pull-to-refresh UX Pattern. This project is inspired by one of Google extension libraries for Jetpack Compose, called SwipeRefresh. The concept of scrolling the content are absolutely the same. However, instead of showing just a progressbar indicator from the top to the bottom while the content itself being scrolled down, the layout would show an additional customizable layouts that correspond to the refresh state. This layout could be an indicator, an animation, or just text to show. It's totally customizable.
Step 1. Add the JitPack repository to your build file
repositories {
...
maven { url 'https://jitpack.io' }
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.rllyhz:pullrefresh-compose:<version>'
}