There is an example of Crossfading Two Views, in the android training website, with the full code, than can be useful to you, if you can adapt it.
http://developer.android.com/training/animation/crossfade.html
You can also follow some other approaches, like a extending a ViewAnimator
Anyways if you cannot use the code of the post you are linking, probably you need a few more of reading before, since every solution will require the same level or undestanding (and a full copy/paste is never a solution)