title: How to create a Button, that blinks after clicked?
body: <p>So far I learned how animations work and how to set the background of a button according to its state as described <a href="http://www.gersic.com/blog.php?id=56" rel="nofollow">here</a>.</p>
  
  <p>Well, I defined an animation:</p>
  
  <pre><code>&lt;set xmlns:android="http://schemas.android.com/apk/res/android"&gt; 
  &lt;alpha 
      android:interpolator="@android:anim/accelerate_interpolator" 
      android:fromAlpha="0.0" 
      android:toAlpha="1.0"  
      android:duration="50" 
      android:repeatMode="reverse"
      android:repeatCount="6"/&gt; 
  </code></pre>
  
  <p> </p>
  
  <p>I start the animation in the onClick(View v) method. The problem now is, that the actual click action gets processed before the animation finishes. I know I could use an AnimationListener, but this would not look very nice to me since I'd have to call the actual click processes within the AnimationListener then. </p>
  
  <p>Does anyone know a more skilful way to let a button blink after it gets clicked?</p>