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

drawOval,drawRoundRect 这二个的多参数方法需要SDK版本21以上才支持 #5

Open
zgh0711 opened this issue Jul 11, 2017 · 4 comments

Comments

@zgh0711
Copy link

zgh0711 commented Jul 11, 2017

如题,这二个函数的直接传坐标的方法要求手机SDK版本在21以上才行,21以下的是没有效果的,要兼容低版本的话需要使用参数比较少的重载方法,先 new RectF,传入坐标,然后再将 Rectf 传入 draw 方法。这个问题在教程里没有提到,新手可能会不知道该怎么处理。

@zgh0711
Copy link
Author

zgh0711 commented Jul 11, 2017

drawArc 方法也是这样的,好像所有跟弧度有关的方法都有这个问题

@JichunMa
Copy link

使用RectF就好了

@rengwuxian
Copy link
Contributor

@JichunMa +1

@ryanlijianchang
Copy link

直接使用new RectF(left,top, right, bottom),跟你直接传的参数是一样的

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

No branches or pull requests

4 participants