android temporarily use setEnabled(false)
<p>I am animating an ImageView so that when you click the image the animation occurs (then later it resets) but my problem is that if you click again where the image sat originally - the animation starts from the beginning right away with out finishing (it just resets and starts again.</p>

<p>so I tried using</p>

<pre><code>   setEnabled(false)
</code></pre>

<p>which works great, the animation continues on its path up perturbed by any random clicking, now the only problem is getting the ImageView enabled again - at about the same time as the animation stops</p>

<p>here's what i have</p>

<pre><code> stopImage.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View arg0) {
            // TODO Auto-generated method stub

            mpButtonClick.start();
            stopImage.setEnabled(false);

            TranslateAnimation  anim = new TranslateAnimation(0f,250 + Math.round(Math.random() * (-700)),0f,-300f);

               anim.setDuration(4200);
               anim.setRepeatCount(0);

           stopImage.startAnimation(anim);
</code></pre>

<p>now is there an easy way i can call setEnabled(true) after a some time has passed?</p>
