そのためにViewSwitcherまたはTextSwitcherを使用できます
<TextSwitcher
android:id="@+id/switcher"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inAnimation="@android:anim/fade_in"
android:outAnimation="@android:anim/fade_out" >
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Hello" />
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="World" />
</TextSwitcher>
textSwitcher で setText を呼び出すと、現在のテキストがフェードアウトし、新しいテキストがフェードインします。
また、任意の View オブジェクトのアニメーションをプログラムで開始することもできます。
Animation fadeIn = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in);
textView.startAnimation(fadeIn);