Skip to content

The BadgeView's dimensions/animation goes weird when you leave the activity and the animation is running (I have a video demonstration) #3

@Meeks91

Description

@Meeks91

The BadgeView's dimensions/animation goes weird, in that view's size changes, and the animation changes with the size.

This occurs when you when you leave the activity and the animation is running, for example, if you exit the activity to look at the multi-tasking menu in Android (onPause and onStop are called), and come back into the app this problem will occur, this doesn't happen every time, but it does happen.

This problem affects the sample app, and my own implementation.

I have uploaded a video to demonstrate the problem, I will take it down/make it private if you ask me to.

One solution is to allow the animation to finish and then restart it when entering the app.

I haven't found a way to successfully stop it, but if I leave the app when the app has finished and restart it, it works (I can provide this code if you need it).

Link to the video: https://www.youtube.com/watch?v=MFirApwfcpQ&feature=youtu.be
Error occurs at roughly 22 seconds+

Any ideas on a good fix ?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions