Manually execute animator
I am trying to do an animation when a user does an action. It should take the selected activities and change the background color. I can't figure out how to do this. The only examples I see use AShapeUtil, but trigger is not a mouse event. One of my problems is finding the ActivityView for a given Activity. Is there a better way to do this than iterating through all the views and comparing the id?
This is my animation code:
ColorAnimation colAnim = new ColorAnimation(Color.WHITE, Color.BLACK);
Animator animator = new OverrideAnimator(colAnim, new TimeLine(500, 10), AShape.A_PAINT, AShapeUtil.DEFAULT_BACKGROUND_SHAPE_NAME);
AnimatorCommand forwardCmd = new AnimatorCommand(animator, OverrideAnimator.CMD_FORWARD);
ActivityInteractor interactor = new ActivityInteractor(activityView, AShapeAnimatorBroker.getInstance(), null);