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 -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -