IconSwitch icon indicating copy to clipboard operation
IconSwitch copied to clipboard

Ugly corners at API below 21

Open automatiq opened this issue 7 years ago • 4 comments

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.

Image

automatiq avatar Apr 10 '17 18:04 automatiq

@polyak01 @a13xsus any possible fixes?

Dwite avatar May 18 '17 13:05 Dwite

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 avatar Jun 02 '17 08:06 wo5553435

@wo5553435 Thanks!) I will try your way next week.

polyak01 avatar Jun 02 '17 09:06 polyak01

Same problem here, I am using API 26. There is a workaround for this issue ?

davidrock avatar Mar 02 '18 20:03 davidrock