Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ugly corners at API below 21 #1

Open
automatiq opened this issue Apr 10, 2017 · 4 comments
Open

Ugly corners at API below 21 #1

automatiq opened this issue Apr 10, 2017 · 4 comments
Labels

Comments

@automatiq
Copy link

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

@polyak01 polyak01 added the bug label Apr 11, 2017
@Dwite
Copy link
Contributor

Dwite commented May 18, 2017

@polyak01 @a13xsus any possible fixes?

@wo5553435
Copy link

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

@polyak01
Copy link
Owner

polyak01 commented Jun 2, 2017

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

polyak01 added a commit that referenced this issue Jul 6, 2017
Fix background creation for pre-Lollipop #1
@davidrock
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants