IconSwitch
IconSwitch copied to clipboard
Ugly corners at API below 21
At api below 21 widget seems to be working fine, but has an issue with rounded corners. Tested with api 19 at emulator and a real device.
@polyak01 @a13xsus any possible fixes?
I don't know the different between the two version's API of Canvas.drawRoundRect() ,but i found when you drew IconSwitchBg ,the radiusY and radiusX were too big , I just changed them like this:
radiusX=radiusY = bounds.height()*0.5f;
It become better now
@wo5553435 Thanks!) I will try your way next week.
Same problem here, I am using API 26. There is a workaround for this issue ?