}
private void startAnimation(int location) {
animating = true;
final int currentLocation = getDividerLocation();
Animator animator = new Animator(250);
animator.setResolution(15);
animator.setAcceleration(0.3f);
animator.setDeceleration(0.2f);
animator.addTarget(new PropertySetter(this, "dividerLocation", Integer.valueOf(location)));
animator.addTarget(new TimingTargetAdapter() {
@Override
public void end() {
animating = false;
isProcessingOneTouch = false;
setLastDividerLocation(currentLocation);
}
});
animator.start();
}