You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can reuse Rect objects instead of creating new ones. As for the Path, you should only rebuild it when it changes (like when the bounds of the view change for example) then reuse it.
The text was updated successfully, but these errors were encountered:
Try and remove the instantiating of various objects in onDraw(). There are these 3 cases:
As suggested by: https://plus.google.com/u/0/+YannickSigner/posts/iT8DwRXaE1P?cfem=1
You can reuse Rect objects instead of creating new ones. As for the Path, you should only rebuild it when it changes (like when the bounds of the view change for example) then reuse it.
The text was updated successfully, but these errors were encountered: