Closed mspnr closed 3 years ago
The issue with this is that it starts to become a square if you increase the size of the icon.
If you want to keep it circle all the time, we can add such a line:
(iconView as MaterialCardView).radius = iconSizeInPX / 2f
Ok, this works then. Add it to the PR.
I experimented a little bit with your example and understood, that it is better to place the radius update into updateUI
function.
@acefalobi do you willing to merge the PR? Please let me know if you see some problem or have some doubts.
Currently used card corner radius 100dp is for sure way to large. It looks like lower APIs do not process larger radii correctly. After some experiments 10dp appeared displayed correctly in the example app on devices with various APIs.
Should fix this issue https://github.com/acefalobi/android-stepper/issues/8