Need help with ButtonLoading?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

rasoulmiri
137 Stars 24 Forks 37 Commits 4 Opened issues

Description

Button Loading for Android

Services available

!
?

Need anything else?

Contributors list

# 210,028
Java
skeleto...
Android
31 commits

ButtonLoading



Beautiful Fancy Button Loading

Android Arsenal Minimum API 17

Demo



Usage:

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() {
            @Override
            public void onClick() {
            //...
            }

        @Override
        public void onStart() {
           //...
        }

        @Override
        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


Repository

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.