List of usage examples for android.view.animation TranslateAnimation TranslateAnimation
public TranslateAnimation(int fromXType, float fromXValue, int toXType, float toXValue, int fromYType, float fromYValue, int toYType, float toYValue)
From source file:Main.java
public static Animation outToBottomAnimation() { Animation outToBottom = new TranslateAnimation(Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, +1.0f); return outToBottom; }
From source file:Main.java
public static Animation slideOutFromBottom() { TranslateAnimation animation = new TranslateAnimation(Animation.RELATIVE_TO_SELF, 0, Animation.RELATIVE_TO_SELF, 0, Animation.RELATIVE_TO_SELF, 0f, Animation.RELATIVE_TO_SELF, 1.0f); animation.setDuration(300);//from w w w . j a va 2 s .c o m return animation; }
From source file:Main.java
public static Animation hideDownAnimation() { Animation mHiddenAction = new TranslateAnimation(Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 1.0f);/*from w w w . j a va2 s .co m*/ mHiddenAction.setDuration(500); return mHiddenAction; }
From source file:Main.java
public static Animation inFromBottomAnimation() { Animation inFromBottom = new TranslateAnimation(Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, +1.0f, Animation.RELATIVE_TO_PARENT, 0.0f); return inFromBottom; }
From source file:Main.java
public static Animation getUpAnimation(int height) { Animation animation = new TranslateAnimation(Animation.ABSOLUTE, 0, Animation.ABSOLUTE, 0, Animation.ABSOLUTE, height, Animation.ABSOLUTE, 0); animation.setDuration(800);/*from w ww . j av a 2 s . c o m*/ // animation.setFillAfter(true); return animation; }
From source file:Main.java
public static Animation createToSouthOutAnimation() { TranslateAnimation animation = new TranslateAnimation(Animation.RELATIVE_TO_PARENT, 0, Animation.RELATIVE_TO_PARENT, 0, Animation.RELATIVE_TO_PARENT, 0, Animation.RELATIVE_TO_PARENT, 1); animation.setDuration(500);//from w ww .j a v a 2 s. c o m return animation; }
From source file:Main.java
public static Animation createFromSouthInAnimation() { TranslateAnimation animation = new TranslateAnimation(Animation.RELATIVE_TO_PARENT, 0, Animation.RELATIVE_TO_PARENT, 0, Animation.RELATIVE_TO_PARENT, 1, Animation.RELATIVE_TO_PARENT, 0); animation.setDuration(500);/*from w w w. j ava2 s .c o m*/ return animation; }
From source file:Main.java
public static Animation createFromSouthEastInAnimation() { TranslateAnimation animation = new TranslateAnimation(Animation.RELATIVE_TO_PARENT, 1, Animation.RELATIVE_TO_PARENT, 0, Animation.RELATIVE_TO_PARENT, 1, Animation.RELATIVE_TO_PARENT, 0); animation.setDuration(500);// w ww. jav a2 s .co m return animation; }
From source file:Main.java
public static TranslateAnimation moveToViewBottom() { TranslateAnimation mHiddenAction = new TranslateAnimation(Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 1.0f);/*from w w w . j av a 2 s.c o m*/ mHiddenAction.setDuration(500); return mHiddenAction; }
From source file:Main.java
public static TranslateAnimation moveToViewLocation() { TranslateAnimation mHiddenAction = new TranslateAnimation(Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 1.0f, Animation.RELATIVE_TO_SELF, 0.0f);//from www . j a v a 2 s . co m mHiddenAction.setDuration(500); return mHiddenAction; }