Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add lifecycle awareness to animated views #12

Open
Labels
enhancementNew feature or request phase-2Performance & Stability
@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request phase-2Performance & Stability

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /