List of usage examples for android.view.animation TranslateAnimation setFillAfter
public void setFillAfter(boolean fillAfter)
From source file:Main.java
public static void twoPoint(ImageView imageview, float f, float f1, int i, int j) { TranslateAnimation translateanimation = new TranslateAnimation(0.0F, f, 0.0F, f1); translateanimation.setFillAfter(true); translateanimation.setDuration(j);//from w w w. j a va2 s.c om imageview.startAnimation(translateanimation); }
From source file:Main.java
public static Animation getYTranslate(float fromYDelta, float toYDelta, long duration) { TranslateAnimation animation = new TranslateAnimation(0, 0, fromYDelta, toYDelta); animation.setFillAfter(true); animation.setDuration(duration);//from ww w . j a va2 s. c om return animation; }
From source file:Main.java
public static Animation getTranslate(float fromXDelta, float toXDelta, float fromYDelta, float toYDelta, long duration) { TranslateAnimation animation = new TranslateAnimation(fromXDelta, toXDelta, fromYDelta, toYDelta); animation.setFillAfter(true); animation.setDuration(duration);//from w ww . ja v a 2s . c o m return animation; }
From source file:Main.java
public static void SetImageSlide(View v, int startX, int toX, int startY, int toY) { TranslateAnimation anim = new TranslateAnimation(startX, toX, startY, toY); anim.setDuration(200);/*w w w . j a v a 2 s .c o m*/ anim.setFillAfter(true); v.startAnimation(anim); }
From source file:Main.java
public static void moveFrontBg(View v, int startX, int toX, int startY, int toY) { TranslateAnimation anim = new TranslateAnimation(startX, toX, startY, toY); anim.setDuration(250);/*from w w w . java 2 s . c o m*/ anim.setFillAfter(true); v.startAnimation(anim); }
From source file:Main.java
public static void TranslateAnimation(View v, int startX, int toX, int startY, int toY, int time) { TranslateAnimation anim = new TranslateAnimation(startX, toX, startY, toY); anim.setDuration(time);/* w w w . j av a 2s . com*/ anim.setFillAfter(true); v.startAnimation(anim); }
From source file:Main.java
public static void setImageSlide(View v, int startX, int toX, int startY, int toY) { TranslateAnimation anim = new TranslateAnimation(startX, toX, startY, toY); anim.setDuration(100);/*from ww w . j av a 2 s .c om*/ anim.setFillAfter(true); v.startAnimation(anim); }
From source file:Main.java
public static void SetImageSlide(View view, int startX, int toX, int startY, int toY) { TranslateAnimation anim = new TranslateAnimation(startX, toX, startY, toY); anim.setDuration(100);//from w ww .java 2s. c o m anim.setFillAfter(true); view.startAnimation(anim); }
From source file:Main.java
public static void animSlideOutFromTop(final View view) { TranslateAnimation animate = new TranslateAnimation(0, 0, 0, view.getHeight()); animate.setDuration(400);// w w w . j a v a 2 s . com animate.setFillAfter(true); view.startAnimation(animate); view.setVisibility(View.GONE); }
From source file:Main.java
public static void animSlideOutFromBottom(final View view) { TranslateAnimation animate = new TranslateAnimation(0, 0, 0, -view.getHeight()); animate.setDuration(500);//from ww w . j ava 2 s. c o m animate.setFillAfter(true); view.startAnimation(animate); view.setVisibility(View.GONE); }