In this video tutorial, consider an interesting library to create animations load effect of liquid filling. The source code example – under the below video.

To connect the library to your project, add the dependency in Build.gradle (App) assembly file:

The video is also used DiscreteSeekBar component, it can be added as follows:

Add a component in the layout of the main screen activity_main.xml:

In class in the method onCreate write implementation, set the parameters and listeners:

In the code commented out additional options. Uncomment and experiment with them. A complete list of parameters – on library page in GitHub.

Leave a Reply