title: Animating button presses / clicks in Android
body: <p>I'm trying to create a button-click animation, e.g. the button scales down a little when you press it, scales back up when you release. If you simply tap, you get the press and release strung together.</p>
  
  <p>I set up an onTouchListener and a couple XML-defined AnimatorSets, one for the press and one for the release. Ran the press on <code>ACTION_DOWN</code>, the release on <code>ACTION_UP</code> or <code>ACTION_CANCEL</code>. This works fine when you press and hold the button, then release a little later. But with a quick tap, the release animation triggers before the press one is done, and often the result is no animation at all.</p>
  
  <p>I'd hoped I could use AnimatorSet's sequential capabilities to stick the release animation onto the end of the possibly-already-running press animation, but no luck. I'm sure I could rig something up with callbacks, but that seems messy.</p>
  
  <p>What's the best approach here? Thanks!</p>