Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

startAnimation() with no parameters not working #166

Open
ochamods opened this issue Sep 5, 2020 · 2 comments
Open

startAnimation() with no parameters not working #166

ochamods opened this issue Sep 5, 2020 · 2 comments

Comments

@ochamods
Copy link

ochamods commented Sep 5, 2020

After calling startAnimation() with no parameters the animation doesn't start. The version I am using is 2.2.0

This is my code

<br.com.simplepass.loadingbutton.customViews.CircularProgressButton
            android:id="@+id/login_button"
            style="@style/RoundedGreenSubmitButton"
            android:layout_height="0dp"
            android:layout_marginStart="16dp"
            android:layout_marginEnd="16dp"
            android:layout_marginBottom="16dp"
            android:text="@string/login_text"
            app:spinning_bar_color="@color/greenSubmitButtonBPay"
            app:spinning_bar_padding="8dp"
            app:spinning_bar_width="4dp"
            android:background="@drawable/button_shape_no_fill"
            app:initialCornerAngle="0dp"
            app:layout_constraintBottom_toTopOf="@+id/register_button"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintHorizontal_bias="0.0"
            app:layout_constraintStart_toStartOf="parent" />

This is how I am testing it with DataBinding.

 ui.loginButton.setOnClickListener {
            //login()
            ui.loginButton.startAnimation()
        }
@leandroBorgesFerreira
Copy link
Owner

🤔 Did you try to use this inside a linear layout instead of the constraint layout? This button doesn't work very well with constraints

@ChhaiHout
Copy link

ChhaiHout commented Nov 23, 2021

If you use v2.1.5, you can call someFragmentBinding.someCircularProgressButton..startMorphAnimation() instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants