" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

How to animate in vertically downward fashion(as if a curtain drops)

Posted on November 23rd, 2015 by Bhaskar Pande

This can be done using the following Animation class constructor. public TranslateAnimation (int fromXType, float fromXValue, int toXType, float toXValue, int fromYType, float fromYValue, int toYType, float toYValue) The Android Developers documentation specifies the constructor as follows: =============================================================== public TranslateAnimation (int fromXType, float fromXValue, int toXType, float toXValue, int fromYType, float fromYValue, int toYType, float […]

Alternative Fade-In and Fade-Out Animation

Posted on November 23rd, 2015 by Ravi Kumar

The imageview on layout will show the required animation. Here animation will go on only for 5 secs. time can be changed. Utility: Animating Splashscreen Generation¬† ImageView mImageView = (ImageView) findViewById(R.id.bImg); new CountDownTimer(5000, 2500) { boolean flag = true; @Override public void onTick(long millisUntilFinished) { if (flag) { AlphaAnimation ar = new AlphaAnimation(0.2f, 1.0f); ar.setInterpolator(new […]