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

The circle shape of button when loading is not maintained when the button background is managed dynamically #195

Open
Aayush-Sarikhada opened this issue Jun 13, 2024 · 0 comments

Comments

@Aayush-Sarikhada
Copy link

Aayush-Sarikhada commented Jun 13, 2024

Hello, thank you for the awesome library

Issue:
I have a feature in my app where a loading button can change its color to grey when some conditions are not matched but button can still act like it is enabled.
So i am setting the button background dynamically like this in xml.

but when the animation starts the button keeps the original corner radius and the button just goes into loading state and it does not show a fully circular button.

android:background="@{canAddToCart ? @drawable/bg_btn_cart : @drawable/bg_btn_cart_disabled, default=@drawable/bg_btn_cart}"

I have found one work around by downgrading the version to 2.0.7 . btw i was using 2.2.0

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

1 participant