View unanswered posts | View active topics It is currently Thu Mar 30, 2017 5:40 pm



This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
 Manually execute animator 
Author Message

Joined: Thu Oct 14, 2010 10:44 pm
Posts: 3
Post 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:

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);
animator.executeCommand(forwardCmd, interactor);


Fri Nov 05, 2010 7:04 pm
Profile
Site Admin

Joined: Mon Dec 06, 2004 4:24 pm
Posts: 2485
Location: Sweden
Post Re: Manually execute animator
Hello,

Please post support questions as a support ticket from the site.

Thanks,


Mon Nov 08, 2010 1:01 am
Profile WWW
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 2 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.