Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Path addRect 添加了大小两个Rect,只能绘制会一个矩形

Open
#91 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, java
Domain
mobile

Research direction

The issue names no repository file or test; start by reproducing the two Path.addRect calls and the Canvas.drawPath call shown. Check the Android Path fill behavior for rectangles with the same versus different Direction values, then document the expected rendering or identify the relevant correction.

Written by the indexing model from the issue text.

Description

 Path path = new Path();
 path.addRect(-100, -100, 100, 100, Path.Direction.CW); // 添加小矩形
 path.addRect(-200, -200, 200, 200, Path.Direction.CW); // 添加大矩形
 canvas.drawPath(path, paint); // 绘制 Path

这段代码只能绘制出一个矩形,如果把两者的Direction 修改为不同的就可以两个都能绘制出来。

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GcsSloop/AndroidNote

All issues in GcsSloop/AndroidNote

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.