How to properly reuse Animation in Android?
<p>I'm trying to reuse AlphaAnimation object in a method of an Activity for every new MyView added every second to myLayout:</p>

<pre><code>private AlphaAnimation showAnimation = new AlphaAnimation(0, 1);

private void addViewAndAnimate() {
    MyView view = new MyView();
    myLayout.addView(view);
    showAnimation.setDuration(durationTime);
    view.startAnimation(showAnimation);
}
</code></pre>

<p>but after I call addViewAndAnimate() the animation is not applied for latest added MyView only, but gets repeated for all MyViews added earlier.</p>

<p>Are view objects somehow bound to an animation? If so is there a way to detach them?</p>