Button do not morph when not using background attribute
See original GitHub issueButton 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:
- Created 6 years ago
- Comments:8 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
loadGradientDrawablefails can’t get RippleDrawable too
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
loadGradientDrawable
fails 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.