android - struggling with ImageButton animation -


i'm struggling android animation , see imagebutton going out of screen when swiping left , make them come inside screen when swiping right. think should use translate effect, don't know how see button moving on whole path. want make swiping intuitive, user should see button went out , in direction. tried one:

 final animation move = animationutils.loadanimation(mainactivity.this, r.animator.moveout);  menubarlayout.startanimation(shake); 

moveout.xml

 <?xml version="1.0" encoding="utf-8"?>  <translate xmlns:android="http://schemas.android.com/apk/res/android"    android:interpolator="@android:anim/accelerate_decelerate_interpolator"    android:duration="500"    android:fillafter="true"    android:fromxdelta="10"    android:fromydelta="0"    android:toxdelta="0%"    android:toydelta="-100%" /> 


Comments

Popular posts from this blog

ruby - How do I merge two hashes into a hash of arrays? -

c++ - Do gcc's __float128 floating point numbers take the current rounding mode into account? -