by rasoulmiri

rasoulmiri / ButtonLoading

Button Loading

130 Stars 24 Forks Last release: almost 3 years ago (v1.0.9) 37 Commits 10 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


Beautiful Fancy Button Loading

Android Arsenal Minimum API 17



Step 1:

Add JitPack repository in your root build.gradle at the end of repositories.

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }

Add dependency in your app level build.gradle.

dependencies {
      compile 'com.github.rasoulmiri:buttonloading:v1.0.8'

Step 2:

use in layout xml


    <io.rmiri.buttonloading.buttonloading android:layout_width="match_parent" android:layout_height="48dp" app:bl_backgroundcolor="#80ffffff" app:bl_circlecolor="#00AFEF" app:bl_circlecolorsecond="#8000AFEF" app:bl_enable="true" app:bl_stateshow="normal" app:bl_text="Login" app:bl_textcolor="#FFFFFF" app:bl_textsize="14sp"></io.rmiri.buttonloading.buttonloading>

Step 3:

buttonLoading.setOnButtonLoadingListener(new ButtonLoading.OnButtonLoadingListener() {
            public void onClick() {

        public void onStart() {

        public void onFinish() {


Configure XML

  • BL_backgroundColor
  • BL_circleColor color
  • BL_circleColorSecond
  • BL_stateShow: normal,animationStart,progress,animationFinish | default value is normal
  • BL_text: text button
  • BL_textColor
  • BL_textSize
  • BL_font: address font in assets. example: file in assetst > fonts > arial.ttf ==> fonts/arial.ttf

    Note: Do not use the button in LinearLayout.

    ## Contributing

You are welcome to contribute with issues, PRs or suggestions.

Other Project Me

Skeleton Android

Simple yet powerful skeleton animation for all view in android

alt tag


We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.