-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or requestphase-2Performance & StabilityPerformance & Stability
Description
Description
All animated views call invalidate() inside onDraw(), causing continuous redrawing and high CPU usage.
Current Problem
@Override
protected void onDraw(Canvas canvas) {
// ... drawing code
invalidate(); // Called every frame!
}Solution
Replace with ValueAnimator or Choreographer for proper frame-based animation.
Affected Components
- ParticlesView
- ParticleProgressBar
- PulseButton
Benefits
- Lower CPU usage
- Better battery life
- Smoother animations
- Ability to pause/resume
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestphase-2Performance & StabilityPerformance & Stability