Closed Wonderpol closed 6 years ago
Which one?
So, I have already solved this problem but I've got second can I set the gravity of spinning_bar ? after animate he is going to the one of the corners. I want to have the same effect as you on the gif
Just set the gravity of the viewgroup containing the button. Like LinearLayout -> Gravity -> Center
It doesn't work I don't know why
Ok I also solved this problem but I have one more problem after btn.revertAnimation(); animation is is stopped but the button don't have the corners radius what's the problem?
You must set the final angle desired, you can find a sample in the repository
@Wonderpol
So, I have already solved this problem but I've got second
It would help other people if could post your solution to this. As a note the android:background="@drawable/circular_border_shape"
attribute can be omitted or changed to a different color or shape. (eg. android:background="@android:color/darker_gray"
)
https://github.com/leandroBorgesFerreira/LoadingButtonAndroid/issues/146
@drawable/circular_border_shape