How to move an Imageview in android studio

Asked

Viewed 229 times

0

Hello, I’m trying to move an Imageview from the center of the screen to the top, and I’m not getting it.

Desired effect: The logo starts in the center and goes to a position at the top of the screen when starting Activity.

I’ve tried a lot, that was the first: https://stackoverflow.com/questions/11144421/move-an-imageview-to-different-position-in-animated-way-in-android but the problem of using Translateanimation is that every end of animation it goes back to the start place.

I’ve tried using Objectanimator, it even makes the move I need and stops in place, only it doesn’t start from the center but from the top of the screen.

RESOLVED

Answer

  • Ask the question the code you tried.

  • Finally I found: link now I only need to do this when starting the screen and not when clicking the button.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.