VOOZH about

URL: https://www.geeksforgeeks.org/android/circular-fillable-loader-in-android-with-seekbar/

⇱ Circular Fillable Loader in Android with Seekbar - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Circular Fillable Loader in Android with Seekbar

Last Updated : 23 Jul, 2025

Circular Fillable Loader is an outstanding way of showing the ProgressBar in any Android app while loading. Display ProgressBar in another form is one of the best ways to increase the user experience. You can get to see these customize loaders in most of the apps. In this article, we are going to see how to implement Circular Fillable Loader in Android. A sample GIF is given below to get an idea about what we are going to do in this article. Note that we are going to implement this project using the Java language. 


Applications of Circular Fillable Loader

  • A unique way of representing a ProgressBar in Android.
  • Using a Circular Fillable Loader increases the user experience.
  • Gives an animated look to our progress bar.

Attributes of Circular Fillable Loader

Attributes

Description

cfl_borderUse to give Border.
cfl_border_widthUse to give width to the border.
cfl_progressUse to display the progress of the Circular Fillable Loader.
cfl_wave_amplitudeUse to give amplitude to wave.
cfl_wave_colorUse to give wave Color.

Method 1

Step by Step Implementation

Step 1: Create a New Project

To create a new project in Android Studio please refer to How to Create/Start a New Project in Android Studio. Note that select Java as the programming language.

Step 2: Add dependency in build.gradle(Module:app) file

Navigate to the Gradle Scripts > build.gradle(Module:app) and add the below dependency in the dependencies section.   

implementation 'com.mikhaellopez:circularfillableloaders:1.3.2'

Step 3: Create a new State Progress Bar in your activity_main.xml file

Navigate to the app > res > layout to open the activity_main.xml file. Below is the code for the activity_main.xml file.


Step 4: Working with the MainActivity.java file

Go to the MainActivity.java file and refer to the following code. Below is the code for the MainActivity.java file. Comments are added inside the code to understand the code in more detail.

Now click on the run option it will take some time to build Gradle. After that, you will get output on your device as given below.

Output:

Method 2

Here we are going to implement the wave loading view. Here we are manually increasing the value of progress and the wave height is increasing. But It can also be used as a timer to set.

Step by Step Implementation

Step 1: Create a New Project

To create a new project in Android Studio please refer to How to Create/Start a New Project in Android Studio. Note that select Java as the programming language.

Step 2: Add dependency

Navigate to the Gradle Scripts > build.gradle(Module:app) and add the below dependency in the dependencies section.   

implementation 'me.itangqi.waveloadingview:library:0.3.5'

Step 3: Working with the activity_main.xml file

Navigate to the app > res > layout > activity_main.xml and add the below code to that file. Below is the code for the activity_main.xml file. 


Step 4: Working with theMainActivity.java file

Go to the MainActivity.java file and refer to the following code. Below is the code for the MainActivity.java file. Comments are added inside the code to understand the code in more detail.

Output:

Comment

Explore