{ "id": "161155", "key": "AC-3874", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-06-21T18:57:31.000+0000", "created": "2016-06-16T19:35:35.000+0000", "labels": [ "Imageview", "ListView", "Scroll", "android", "template" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-06-21T18:57:31.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "\r\n{code:java}\r\nvar lf=10,rt=10;\r\nvar template={\r\n\t\tchildTemplates:[\r\n\t\t\t{\r\n\t\t\t\ttype:\"Ti.UI.View\",\r\n\t\t\t\tproperties:{\r\n\t\t\t\t\tleft:rt,\r\n\t\t\t\t\tright:rt\r\n\t\t\t\t},\r\n\t\t\t\tevents:{\r\n\t\t\t\t\tlongpress:function(e){\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\tchildTemplates:[\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttype:\"Ti.UI.View\",\r\n\t\t\t\t\t\tproperties:{\r\n\t\t\t\t\t\t\theight:80,\r\n\t\t\t\t\t\t\twidth:120,\r\n\t\t\t\t\t\t\tleft:0,\r\n\t\t\t\t\t\t\tborderRadius:5\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tchildTemplates:[\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\ttype:\"Ti.UI.ImageView\",\r\n\t\t\t\t\t\t\t\tbindId:\"thumb\",\r\n\t\t\t\t\t\t\t\tproperties:{\r\n\t\t\t\t\t\t\t\t\theight:80,\r\n\t\t\t\t\t\t\t\t\twidth:120,\r\n\t\t\t\t\t\t\t\t\tdefaultImage:\"/images/default.png\"\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\ttype:\"Ti.UI.Label\",\r\n\t\t\t\t\t\t\t\tbindId:\"dur\",\r\n\t\t\t\t\t\t\t\tproperties:{\r\n\t\t\t\t\t\t\t\t\tbottom:3,\r\n\t\t\t\t\t\t\t\t\tright:3,\r\n\t\t\t\t\t\t\t\t\tfont:{fontSize:12},\r\n\t\t\t\t\t\t\t\t\tbackgroundColor:\"#000\",\r\n\t\t\t\t\t\t\t\t\tcolor:\"#FFF\"\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t]\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttype:\"Ti.UI.Label\",\r\n\t\t\t\t\t\tbindId:\"myTitle\",\r\n\t\t\t\t\t\tproperties:{\r\n\t\t\t\t\t\t\tleft:125,\r\n\t\t\t\t\t\t\tright:0,\r\n\t\t\t\t\t\t\twordWrap:false,\r\n\t\t\t\t\t\t\tellipsize:Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_END,\r\n\t\t\t\t\t\t\tfont:{fontSize:13},\r\n\t\t\t\t\t\t\tcolor:G.tColor\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t]\r\n\t};\r\n{code}\r\n\r\nAbove are the template for my listview.\r\nThe purpose of using listview is to improve performance and to reduce overhead in creating multiple views, but instead, there is a lot of choppiness in the scrolling that it makes the UI experience absolutely horrible.\r\n\r\nTo be precise, the scrolling stops until the next visible image in the queue is fully loaded and then only it continues to scroll again. This problem has given to a lot of users a horrible user experience, and I find most of them trying to skip from anything inside the app that involves about scrolling!\r\n\r\nThe listview with no imageview inside them works fine as normal but anything that contains images, the extend of choppiness is damm unbearable!\r\n\r\n All images used in the listview are cached version.\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "[ANDROID] ListView image scrolling very jerky (even after following the best practices) ", "creator": { "name": "spaceman12", "key": "spaceman12", "displayName": "Lee phela", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "spaceman12", "key": "spaceman12", "displayName": "Lee phela", "active": true, "timeZone": "America/Los_Angeles" }, "environment": " Name = Mac OS X\r\n Version = 10.11.5\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 4.3.0\r\n npm Version = 2.14.12\r\nTitanium CLI\r\n CLI Version = 5.0.8\r\nTitanium SDK\r\n SDK Version = 5.3.0.GA\r\n Target Platform = android", "comment": { "comments": [ { "id": "388488", "author": { "name": "spaceman12", "key": "spaceman12", "displayName": "Lee phela", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Actually, I was displaying my listview inside an alertDialog as android view.\r\nHowever, after ditching alertDialog and switching to a full window activity, the jerkiness and choppiness disappears completely.\r\nAdmin may close this ticket as resolved and for anyone coming here with similar issues, always use the listview on the window activity directly and not on the alertdialog or whatever!", "updateAuthor": { "name": "spaceman12", "key": "spaceman12", "displayName": "Lee phela", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-06-16T20:25:45.000+0000", "updated": "2016-06-16T20:25:45.000+0000" }, { "id": "388768", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Thanks for letting us know. Yes, listview should be used in window directly.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-06-21T18:56:45.000+0000", "updated": "2016-06-21T18:56:45.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }