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

感觉PieView中的onDraw()方法中,RectF rect = new RectF(-r, -r, r, r); 放到外面比较好

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

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
48/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, java

Research direction

Start by locating PieView and reading its onDraw() method, focusing on the RectF rect = new RectF(-r, -r, r, r) allocation. Confirm how the rectangle is used and whether its values change between draws. Done means avoiding repeated object creation while preserving the view's drawing behavior; run the relevant Android build or tests if available.

Written by the indexing model from the issue text.

Description

onDraw()方法的调用是非常频繁的,这样创建了好多不必要的对象

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.