Skip to content

Add lifecycle awareness to animated views #12

@OneXeor

Description

@OneXeor

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestphase-2Performance & Stability

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions