leandroBorgesFerreira / LoadingButtonAndroid

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

Button's circular corner radius returns to square after calling revert animation. #164

Closed basusingh closed 4 years ago

basusingh commented 4 years ago

I'm currently using this code to make the corners rounded for the button.

`<?xml version="1.0" encoding="utf-8"?>

`

applying it as this in the button: android:background="@drawable/round_button_dark"

The button is now rounded around the corners. When I call startAnimation(), the animation starts but if I call revertAnimation(), the button goes back to its original shape with sharp (rectangle) corners.

Should I use any other login to make it the corners rounded?

20200728_003850 20200728_003915 20200728_003904

basusingh commented 4 years ago

Solved. The issue was in: app:initialCornerAngle="0dp" changed it to: app:initialCornerAngle="50dp"