Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16868] Android: Parent Template can return the children objects on iOS but not Android

GitHub Issuen/a
TypeBug
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.2.2
Fix Version/sn/a
ComponentsAndroid
Labelsparity, supportTeam
ReporterEduardo Gomez
AssigneeAshraf Abu
Created2014-04-18T21:13:53.000+0000
Updated2016-06-30T04:34:42.000+0000

Description

Issue description

​ListView does not enables any reference to get the child views of the list view. On iOS it gets the child view element to animate it.

Steps to reproduce

Please grab attached 'app.js' for demonstrating the issue.

Click somewhere the Image or Labels for rotate of ImageView.

Notice difference between Platforms.

Console output

{quote} Ti.API.info('*evt: ' + JSON.stringify(evt.source.apiName)); evt.source.children && Ti.API.info('@@@evt: ' + JSON.stringify(evt.source.children[4])); {quote}

iOS output:

[INFO] :   *evt: "Ti.UI.View"
[INFO] :   @@@evt: {"paused":false,"image":"KS_nav_ui.png","backgroundColor":"red","touchEnabled":false,"animating":false,"horizontalWrap":true,"reverse":false,"bindId":"pic","autorotate":true,"duration":200,"stopped":true}

Android Output:

04-18 16:07:15.407: I/TiAPI(26014):  *evt: "Ti.UI.View"
04-18 16:07:15.407: I/TiAPI(26014):  @@@evt: undefined
04-18 16:07:15.407: E/TiExceptionHandler(26014): (main) [487969,604462] ----- Titanium Javascript Runtime Error -----
04-18 16:07:15.407: E/TiExceptionHandler(26014): (main) [1,604463] - In app.js:208,25
04-18 16:07:15.407: E/TiExceptionHandler(26014): (main) [1,604464] - Message: Uncaught TypeError: Cannot call method 'animate' of undefined
04-18 16:07:15.417: D/AudioHardwareMSM7X30(128): value of device and enable is 6 1 ALSA dev id:6
04-18 16:07:15.417: E/TiExceptionHandler(26014): (main) [9,604473] - Source: 	evt.source.children[4].animate({

Attachments

FileDateSize
app.js2014-04-18T21:13:54.000+00006716

Comments

  1. Daniel Fortner 2014-05-01

    [~ingo], I spoke to [~hpham], he looked at this briefly, and we put it in Sprint 10.
  2. Sunila 2014-05-27

    Added code to update proxies with the right views when an event is fired so that the proxies that are accessed during the event in JS will have the right UI control associated with it. https://github.com/appcelerator/titanium_mobile/pull/5734
  3. Sunila 2014-07-07

    Added a new PR to enable databind 'transform' property with duration to solve the use case in the sample. https://github.com/appcelerator/titanium_mobile/pull/5888
  4. Ingo Muschenetz 2015-02-11

    [~hpham] What is the workaround we came up with for this issue?

JSON Source