I'm creating a game and I would like to display a simple "score"-animation to the player when credits are given to him. This is the view I throw onto the screen: public class Score extends FrameLayout { public Score(Context context, int score) { super(context); TextView txt = new TextView(context); txt.setText(String.valueOf(score).toUpperCase()); addView(txt); Animation anim = AnimationUtils.load