Move an ImageView to different position in Animated way in Android

后端 未结 4 573
轻奢々
轻奢々 2020-12-04 17:00

I have several ImageViews in a RelativeLayout. now, when user taps any of the ImageView, I want it to be moved to a specified location with subtle

4条回答
  •  甜味超标
    2020-12-04 17:47

    you can use this code

    imageView.animate().x(80).y(212).setDuration(300);
    

    or

    for soft animation you can use this library

    https://github.com/wirecube/android_additive_animations

提交回复
热议问题