-
Notifications
You must be signed in to change notification settings - Fork 0
Open
@OneXeor
Description
Description
Animated views should respect Activity/Fragment lifecycle to save battery.
Tasks
- Pause animation when view is not visible
- Resume animation when view becomes visible
- Implement
onSaveInstanceState/onRestoreInstanceState - Consider using
LifecycleObserver
Benefits
- Better battery performance
- Proper state restoration on configuration changes
- Follows Android best practices