Skip to content

Add lifecycle awareness to animated views #12

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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