codepath / codepath/android_guides
Defining Custom Views - getTrianglePath() allocating new Points/Path in onDraw()
Open
- Dominant language
- No language data
- Stars
- 28.3k
- Forks
- 6.2k
- PR merge metrics
- No merged PRs in 30d
Description
This is a no-no and it's not caught by the compiler(IDE) because it's in a caller method.
Just some best practices, especially for a custom view guide.
(If I had the time I would fix it but just wanted to note this.)
https://github.com/codepath/android_guides/wiki/Defining-Custom-Views
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.