安卓自定义View进阶-Canvas之绘制图形 部分有误
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 42/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- android, java
- Domain
- documentation, mobile
Research direction
Start with the quoted drawRoundRect passage in the Android custom View documentation and verify its behavior against the Android Canvas API. Update the explanation to describe proportional scaling for oversized corner radii, and confirm that the corrected wording matches the observed behavior.
Written by the indexing model from the issue text.
Description
关于对drawRoundRect的这部分描述:
其中灰色部分是我们所选定的矩形,而里面的圆角矩形则变成了一个椭圆,实际上在rx为宽度的一半,ry为高度的一半时,刚好是一个椭圆,通过上面我们分析的原理推算一下就能得到,而当rx大于宽度的一半,ry大于高度的一半时,实际上是无法计算出圆弧的,所以drawRoundRect对大于该数值的参数进行了限制(修正),凡是大于一半的参数均按照一半来处理。
我在使用的时候发现,大于一半的参数并不是按一半来处理的,是按等比缩放来处理的
- Dominant language
- Java
- Stars
- 9.3k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GcsSloop/AndroidNote
-
安卓 Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
GcsSloop/AndroidNote#115 ·
-
章节缺失:安卓自定义View进阶 Open
Difficulty 3/5 1-2 days Newbie friendliness 55/100
GcsSloop/AndroidNote#114 ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 55/100
GcsSloop/AndroidNote#111 · 2 reactions ·
-
博客有几篇打不开了 Open
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
GcsSloop/AndroidNote#110 ·
-
【招聘】Android工程师招聘!!! Open
Difficulty 1/5 Under an hour Newbie friendliness 1/100
GcsSloop/AndroidNote#109 ·
All issues in GcsSloop/AndroidNote
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
elastic/gradle-plugins#157 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
cryptomator/hub#497 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
johanhaleby/occurrent#1120 ·