Why alpha animation doesn’t work in android?

I want to merge animation in android application.
I’m doing with below code.
but alpha animation doesn’t work.
I don’t have no idea why it doesn’t work.
anyone can help me?

// create set of animations
    AnimationSet login_page_animation = new AnimationSet(false);
    // animations should be applied on the finish line

    // create scale animation
    int white_background_height=((TextView) findViewById(R.id.login_white_backgroud)).getHeight();
    TranslateAnimation translate_animation = new TranslateAnimation(0,0,0,- white_background_height/4);

    // create Alpha animation
    AlphaAnimation alpha_animation=new AlphaAnimation(0.0f,1.0f);

    // add new animations to the set

Source: android

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.