Languages

Menu
Sites
Language
SetHoldEndEnabled is not working in the RotateAnimation?

Hello Everyone,

 

i want to rotate the my BitmapControl to some Degrees and Hold at that point. but everytime it goes back to its orignal position.

 

RotateAnimation animClkWise(0,27, AnimationPropertyInfo::DEFAULT_DURATION, ANIMATION_INTERPOLATOR_LINEAR);    animClkWise.SetHoldEndEnabled(false);
    //animClkWise.SetAutoReverseEnabled(true);

animClkWise.SetAnchor(0.5,1);

      (__pBmpCtrl->GetControlAnimator()->StartUserAnimation(ANIMATION_TARGET_ROTATION, animClkWise));

        __pBmpCtrl->GetControlAnimator()->AddControlAnimatorDetailedEventListener(*this);

 

help plesase..

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

1 Replies
Pushpa G
The end value of a rotate animation must be 0 or 360. Please see API reference document. Tizen::Ui::Animations::RotateAnimation. To do what you want, you can use Tizen::Ui::Animations::VisualElement. Control::GetVisualElement() func returns an instance of Tizen::Ui::Animations::VisualElement. However,keep in mind that control property values will become different than what you expect. (For example, Even if you move control visual element to other position, bounds property of control is not changed)