Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当用户导航离开活动时,我的视图可能仍在动画中。是否有某种等效于onPause()或onStop()的方法来通知视图不再需要其服务?
根据之前的评论:
onDetachedFromWindow()可能是放置该逻辑的正确位置。
onDetachedFromWindow()