question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Button do not morph when not using background attribute

See original GitHub issue

Button does not morph when we don’t set any background to the button. Here is my xml

<br.com.simplepass.loading_button_lib.customViews.CircularProgressButton
                    android:id="@+id/welcome_signin_button"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_horizontal"
                    android:layout_marginTop="@dimen/form_horizontal_margin"
                    android:theme="@style/AppTheme.Button"
                    style="@style/progressButtonStyle"
                    android:text="@string/welcome_signin_cta"
                    />

And here is the styles applyed

<style name="AppTheme.Button">
        <item name="android:textAllCaps">false</item>
        <item name="android:colorButtonNormal">?attr/colorAccent</item>
        <item name="android:textColor">@color/white</item>
        <item name="android:textStyle">bold</item>
    </style>


    <style name="progressButtonStyle" parent="Widget.AppCompat.Button">
        <item name="finalCornerAngle">50dp</item>
        <item name="initialCornerAngle">2dp</item>
        <item name="spinning_bar_color">@color/white</item>
        <item name="spinning_bar_padding">4dp</item>
        <item name="spinning_bar_width">2dp</item>
    </style>

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
JasonHezzcommented, Dec 28, 2017

loadGradientDrawablefails can’t get RippleDrawable too

1reaction
vincentnockcommented, Nov 14, 2017

Hmmm, if I remember correctly, the problem here is not about the spinning bar, but about the unability to perform the morph animation on a material button, because loadGradientDrawablefails to get the ShapeDrawable because of the inset.

But maybe I’m wrong, I don’t have to time to test again that for the moment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Morph transition: Tips and tricks - Microsoft Support
Learn how to use the Morph transition in PowerPoint to easily create animations ... Morph now gives you more control over which objects...
Read more >
android:background attribute not being applied to buttons
I'm trying to create a custom outlined rounded button for my android app but when I'm applying it through the android:background attribute in ......
Read more >
Coloring Buttons w/ ThemeOverlays & Background Tints
Say you want to change the background color of a Button . How can this be done? This blog post covers two different...
Read more >
CSS transitions: Animating a toggle button - LogRocket Blog
Creating transitions with the CSS transition-property ... Not all CSS properties can be transitioned, but several can be, in particular, ...
Read more >
Button - Quasar Framework
The QBtn Vue component is a button with features like shaping, loading state, ripple and more. ... When not disabled or spinning, QBtn...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found