leandroBorgesFerreira / LoadingButtonAndroid

A button to substitute the ProgressDialog
MIT License
1.95k stars 214 forks source link

Custom background conflicts #71

Closed acegreen closed 6 years ago

acegreen commented 6 years ago

I run into two small issues with a custom background set:

  1. Initial Animation The button is already a circle with a corner radius set When I do startAnimation() the button initial morphs to a square then immediately morphs back to the circle (as it was initially, no size change)

  2. End Animation When I revertAnimation(), the button morphs to a square and stays that way

Custom background `

`

Screen capture 2018_07_17_10_56_16.mp4.zip

acegreen commented 6 years ago

WAs able to address both issues by setting the initial and final cornerAngle as specified in the docs. Not sure if this should be necessary since it should draw this from the background xml if set