android - Move ImageView with animation -



android - Move ImageView with animation -

i'm trying move imageview code:

img.animate().translationy(110).setduration(1500);

but if seek move 1 time again later like:

img.animate().translationy(-110).setduration(1500);

the imageview moves used before moved in first place. expect homecoming it's original position. missing here?

try this

img.animate().translationy(0).setduration(1500);

android animation android-studio imageview position

Comments

Popular posts from this blog

php - How to pass multiple values from url -

php - Laravel not returning controller -

c# - Confused on how to specify a Platform and Version while using ChromeOptions for RemoteWebDriver with Selenium donNet since recent updates -