简体   繁体   中英

How to move a view onto another view with animation

I want to make a button which will move onto a specific view when pressed and will come back when pressed again. How can i achieve this? Is there any library or sample code?

You can use ObjectAnimator for achieving this, to animate a view to your desired directions. There is also a simplified library

https://github.com/daimajia/AndroidViewAnimations

Let me Know if it helps you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM