Tuesday, January 31, 2012

Animation For Textview in Android

Animation For Textview in Android

 i have wrote code   animation for textview.

where we can textview animation ex: flash news or new message received there we can use it. etc...

 Download Source Code


source code
 private class LocalFadeInAnimationListener implements AnimationListener {
       
        public void onAnimationEnd(Animation animation) {
            launchOutAnimation();
        }
       
        public void onAnimationRepeat(Animation animation){
        }
   
        public void onAnimationStart(Animation animation) {
        }
    };
   
    /**
     * Animation listener for fade-in
     *
     * @author VIJAYAKUMAR
     *
     */
    private class LocalFadeOutAnimationListener implements AnimationListener {
       
        public void onAnimationEnd(Animation animation) {
            launchInAnimation();
        }
       
        public void onAnimationRepeat(Animation animation) {
        }
   
        public void onAnimationStart(Animation animation) {
        }
    };
   

anim xml code
fadein.xml

<?xml version="1.0" encoding="utf-8"?>
<alpha

    xmlns:android="http://schemas.android.com/apk/res/android"
    android:fromAlpha="0.1"
    android:toAlpha="1.0"
    android:duration="1000"
>

</alpha>

fadeout.xml
<?xml version="1.0" encoding="utf-8"?>
<alpha

    xmlns:android="http://schemas.android.com/apk/res/android"
    android:fromAlpha="1.0"
    android:toAlpha="0.1"
    android:duration="1000"
>

</alpha>



4 comments:

  1. Normally I do not learn article on blogs, but I wish to say that this write-up very compelled me to take a look at and do it! Your writing taste has been surprised me. Thanks, quite great post.
    my site > extasy usa

    ReplyDelete
  2. Supper.This kind of post will help you to Increase your website visibility.I like your blog criteria.This is one of the great post.

    ReplyDelete
  3. Some can provide acceptance in minutes and also the financed cash within a day payday loans no credit check do
    not settle to the first lender you encounter.

    ReplyDelete

Check out this may be help you

Related Posts Plugin for WordPress, Blogger...