Comment rendre le texte fade in et fade out sur Android?

J'ai un paragraphe de texte et quand on clique sur un bouton, je veux que le texte de la fermeture, de changer pour un autre texte, puis fondu dans. J'ai un code mais il ne fait pas le fade out de l'animation juste le fondu.

    final TextView mSwitcher = (TextView) findViewById(R.id.bookContent);
    mSwitcher.setText("old text");

    final Animation in = new AlphaAnimation(0.0f, 1.0f);
    in.setDuration(3000);

    final Animation out = new AlphaAnimation(1.0f, 0.0f);
    out.setDuration(3000);

    Button moveOn = (Button) findViewById(R.id.moveOn);
    moveOn.setOnClickListener( new OnClickListener() {
        public void onClick(View v) {

            mSwitcher.startAnimation(out);
            mSwitcher.setText("new text");
            mSwitcher.startAnimation(in);

        }
    });
InformationsquelleAutor Andy Lobel | 2011-12-24