Android - TabActivity con animación de transición

Estoy tratando de agregar una animación a mi TabActivty. Por ejemplo, cuando el usuario selecciona la segunda pestaña, quiero que la nueva actividad venga de la derecha. Cuando el usuario selecciona la primera pestaña, quiero que la actividad venga de la izquierda.

He encontrado cómo agregar una animación, pero quiero agregar una de nuevo. Aquí está el código que estoy usando:

<code>public 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(240);
    inFromRight.setInterpolator(new AccelerateInterpolator());
    return inFromRight;
}
</code>

Y

<code>getTabHost().setOnTabChangedListener(new OnTabChangeListener() {
       public void onTabChanged(String tabId)
       {
           View currentView = getTabHost().getCurrentView();
           currentView.setAnimation( inFromRightAnimation() );
       }
});
</code>

¿Cómo puedo hacer eso?

Gracias.

Saludos.

V.

Respuestas a la pregunta(4)

Su respuesta a la pregunta