List of usage examples for android.view.animation Animation RELATIVE_TO_PARENT
int RELATIVE_TO_PARENT
To view the source code for android.view.animation Animation RELATIVE_TO_PARENT.
Click Source Link
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);//from w w w. jav a2 s . c o m return animation; }
From source file:Main.java
public static Animation getTranslateLoginInAnimation(long t) { TranslateAnimation animation = new TranslateAnimation(Animation.RELATIVE_TO_PARENT, 0.01f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f); animation.setDuration(t);/*from w w w.ja v a 2 s . c o m*/ return animation; }
From source file:Main.java
public static Animation outToLeftAnimation() { Animation outtoLeft = new TranslateAnimation(Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, -1.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f); outtoLeft.setDuration(500);/* ww w. ja v a 2s .c o m*/ outtoLeft.setInterpolator(new AccelerateInterpolator()); return outtoLeft; }
From source file:Main.java
public static Animation inFromLeftAnimation() { Animation inFromLeft = new TranslateAnimation(Animation.RELATIVE_TO_PARENT, -1.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f); inFromLeft.setDuration(500);/*ww w .j a v a 2 s .co m*/ inFromLeft.setInterpolator(new AccelerateInterpolator()); return inFromLeft; }
From source file:Main.java
public static Animation outToRightAnimation() { Animation outtoRight = new TranslateAnimation(Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, +1.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f); outtoRight.setDuration(500);/*from w w w . j av a2 s . c o m*/ outtoRight.setInterpolator(new AccelerateInterpolator()); return outtoRight; }
From source file:Main.java
public static Animation inFromRightAnimation() { Animation inFromRight = new TranslateAnimation(Animation.RELATIVE_TO_PARENT, +1.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f); inFromRight.setDuration(300);//from ww w.j a v a2 s .c om inFromRight.setInterpolator(new AccelerateInterpolator()); return inFromRight; }
From source file:Main.java
public static Animation inFromRightAnimation() { Animation inFromRight = new TranslateAnimation(Animation.RELATIVE_TO_PARENT, +1.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f); inFromRight.setDuration(500);/*from w ww.j ava2 s . c o m*/ inFromRight.setInterpolator(new AccelerateInterpolator()); return inFromRight; }
From source file:Main.java
public static Animation slideOutAnimation() { Animation outtoRight = new TranslateAnimation(Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, +1.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f); outtoRight.setDuration(500);/*from ww w.j a v a2 s . c om*/ outtoRight.setInterpolator(new AccelerateDecelerateInterpolator()); return outtoRight; }
From source file:Main.java
public static Animation slideInAnimation() { Animation inFromRight = new TranslateAnimation(Animation.RELATIVE_TO_PARENT, +1.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f); inFromRight.setDuration(500);//w ww. j a v a 2 s. co m inFromRight.setInterpolator(new AccelerateDecelerateInterpolator()); return inFromRight; }
From source file:Main.java
public static Animation outToLeftAnimation() { Animation outtoLeft = new TranslateAnimation(Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, -1.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f); outtoLeft.setDuration(OUT_DURATION); outtoLeft.setInterpolator(new AccelerateInterpolator()); return outtoLeft; }