[AC-3093] Android Ti.UI animation constants return 'undefined'
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2011-12-25T16:31:49.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | andoid, animation |
Reporter | Julian Fraser |
Assignee | Shak Hossain |
Created | 2011-12-13T02:31:39.000+0000 |
Updated | 2016-03-08T07:48:08.000+0000 |
Description
This issue was logged in the community Q&A yesterday here: http://developer.appcelerator.com/question/129321/tiui-animation-curve-contants-undefined-on-android
On Android the animation constants return undefined.
// WRITE OUT SOME DEBUGGING STUFF TO THE CONSOLE
Ti.API.info('Ti.UI.ANIMATION_CURVE_EASE_OUT = ' + Ti.UI.ANIMATION_CURVE_EASE_OUT);
{panel:title=iOS Console Output}
Ti.UI.ANIMATION_CURVE_EASE_OUT = 2
{panel}
{panel:title=Android Console Output}
Ti.UI.ANIMATION_CURVE_EASE_OUT = undefined
{panel}
Julian Thank you for raising this, but these constants have been deprecated. The latest updates to the apidocs should make this clear. See [Titanium.UI](http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI-module). Thanks
Paul, Thanks for your feedback. This was an issue with Android. From looking at the updated docs, the animation curve constants now only apply to iOS. The initial reason for raising this issue is that I have an animation in an Android app that requires a linear animation curve, and all I can get is an ease-in-ease-out curve. That's why I thought this was an issue with the contstants initially. Am I stuck with a non-linear curve for this animation? Thanks, Julian.