{ "id": "123774", "key": "TIMOB-15999", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16092", "description": "2014 Sprint 08", "name": "2014 Sprint 08", "archived": true, "released": true, "releaseDate": "2014-04-24" }, { "id": "16093", "description": "2014 Sprint 08 SDK", "name": "2014 Sprint 08 SDK", "archived": true, "released": true, "releaseDate": "2014-04-24" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-04-17T21:29:24.000+0000", "created": "2013-12-16T14:24:45.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "listview", "module_listview", "qe-testadded", "scrollToItem", "supportTeam", "triage" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" }, { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [ { "id": "35790", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "124012", "key": "TIMOB-16115", "fields": { "summary": "iOS: Unable to disable animation when using ListView.setItems()", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-04-22T21:23:30.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h3. Request\r\n\r\nIn the Android listView allow user to disable animation on the scrollToItem method or set selection to a specific Section and row.\r\n\r\nh3. Current Behavior \r\n\r\nThe listView element is able to disable animation on scrollToItem and set selection only on iOS.\r\n\r\nh3. Sample Code\r\n\r\n{code}\r\n\r\n$.listView.scrollToItem(10, 1, {\r\n animated: false\r\n});\r\n\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: Disable scrollToItem animation on ListView ", "creator": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Product: Titanium SDK\r\nTitanium SDK: Mobile 3.1GA\r\nPlatform OS: Android\r\nPlatform OS Version: 4.x", "comment": { "comments": [ { "id": "284445", "author": { "name": "moshebox@gmail.com", "key": "moshebox@gmail.com", "displayName": "Moshe Marciano", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "also, controlling the speed of the animation is a nice, or making it adaptive to the distance it needs to pass when it scrolls from row A to row B... slower animation when we need to move 5, 10, 20 rows, and much faster when we need to move 200,300 rows..", "updateAuthor": { "name": "moshebox@gmail.com", "key": "moshebox@gmail.com", "displayName": "Moshe Marciano", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2013-12-16T15:41:04.000+0000", "updated": "2013-12-16T15:41:04.000+0000" }, { "id": "301291", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Test Case\n{code}\nvar win = Ti.UI.createWindow({\n\tbackgroundColor:'white',\n\texitOnClose:true,\n\ttitle:'ScrollToItem',\n\tlayout:'vertical'\n});\n\nvar container = Ti.UI.createView({height:Ti.UI.SIZE});\nwin.add(container);\n\nvar b1 = Ti.UI.createButton({\n\tleft:'2%',\n\ttop:0,\n\tbackgroundColor:'black',\n\tcolor:'white',\n\ttitle:'animated=true',\n\twidth:'45%'\n});\n\nvar b2 = Ti.UI.createButton({\n\tright:'2%',\n\ttop:0,\n\tbackgroundColor:'black',\n\tcolor:'white',\n\ttitle:'animated=false',\n\twidth:'45%'\n});\n\ncontainer.add(b1);\ncontainer.add(b2);\n\nvar label = Ti.UI.createLabel({color:'black',height:'64dp',font:{fontSize:'14dp'}});\nwin.add(label);\n\n\nfunction genSection(section)\n{\n\tvar data = [];\n\tfor(i=0;i<25;i++) {\n\t\tdata.push({properties: { title: 'SectionIndex '+section+' ItemIndex '+i}});\n\t}\n\n\tvar section = Ti.UI.createListSection({items:data,headerTitle:'Section '+section});\n\treturn section;\n}\n\nvar sections = [];\nfor(j=0;j<25;j++) {\n\tsections.push(genSection(j));\n}\n\nvar listView = Ti.UI.createListView({\n\tsections:sections\n});\n\nwin.add(listView);\nwin.open();\n\nfunction scrollToRandom(animated)\n{\n\tvar sIndex = Math.floor(Math.random()*31)%25;\n\tvar iIndex = Math.floor(Math.random()*83)%25;\n\tlabel.text = 'listView.scrollToItem('+sIndex+','+iIndex+',{animated:'+animated+'})';\n\tlistView.scrollToItem(sIndex,iIndex,{animated:animated});\n}\n\nb1.addEventListener('click',function(){\n\tscrollToRandom(true);\n});\nb2.addEventListener('click',function(){\n\tscrollToRandom(false);\n});\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-04-17T19:20:29.000+0000", "updated": "2014-04-17T19:20:29.000+0000" }, { "id": "301292", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending against master\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5620", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-04-17T19:31:04.000+0000", "updated": "2014-04-17T19:31:04.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }