Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3093] Android Ti.UI animation constants return 'undefined'

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2011-12-25T16:31:49.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandoid, animation
ReporterJulian Fraser
AssigneeShak Hossain
Created2011-12-13T02:31:39.000+0000
Updated2016-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}

Comments

  1. Paul Dowsett 2011-12-25

    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
  2. Julian Fraser 2012-01-06

    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.

JSON Source