{ "id": "134939", "key": "TIMOB-17512", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-10-11T01:02:05.000+0000", "created": "2014-08-19T06:52:42.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "qe-3.4.0", "reprod" ], "versions": [ { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "issuelinks": [ { "id": "56033", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "169973", "key": "TIMOB-25376", "fields": { "summary": "Android:List item is not rendering properly with 6.2.X and above", "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": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-10-11T01:02:05.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": "Steps - \r\n1. Run the below code sample\r\n2. Observe that ListView items are appearing in correct order (small medium and big)\r\n3. Now scroll the list items up and down.\r\n4. Observe the ListView items.\r\n\r\nActual result - ListView item “big” is not appearing in the ListView. See the attached screen shot.\r\n\r\nExpected Result - ListView items should not disappear on scrolling the list items\r\n\r\nAdditional Info - In the below code, if I set the height (ex - height : ’20dp’) instead of height : TI.UI.SIZE then scrolling is working fine\r\nNote - Working fine on iOS device.\r\n\r\n{code}\r\nvar aWindow = Ti.UI.createWindow({\r\n\ttitle : \"ListView Template\",\r\n\tbackgroundColor : 'white'\r\n});\r\nvar itemTemplate = {\r\n\tchildTemplates : [{\r\n\t\ttype : 'Ti.UI.View',\r\n\t\tbindId : 'addressView',\r\n\t\tproperties : {\r\n\t\t\tlayout : 'vertical',\r\n\t\t\tleft : 10,\r\n\t\t\twidth : Ti.UI.SIZE,\r\n\t\t\ttouchEnabled : false,\r\n\t\t\theight : Ti.UI.SIZE,\r\n\t\t\ttop : 10,\r\n\t\t\tbottom : 10\r\n\t\t},\r\n\t\tchildTemplates : [{\r\n\t\t\ttype : 'Ti.UI.Label',\r\n\t\t\tbindId : 'lblText1',\r\n\t\t\tproperties : {\r\n\t\t\t\tcolor : 'black',\r\n\t\t\t\twidth : Ti.UI.SIZE,\r\n\t\t\t\theight : Ti.UI.SIZE\r\n\t\t\t}\r\n\t\t}, {\r\n\t\t\ttype : 'Ti.UI.Label',\r\n\t\t\tbindId : 'lblText2',\r\n\t\t\tproperties : {\r\n\t\t\t\tcolor : 'green',\r\n\t\t\t\tborderColor : 'green',\r\n\t\t\t\ttop : 3,\r\n\t\t\t\tbottom : 3,\r\n\t\t\t\tleft : 3,\r\n\t\t\t\tright : 3,\r\n\t\t\t\tborderWidth : 1,\r\n\t\t\t\twidth : Ti.UI.SIZE,\r\n\t\t\t\theight : Ti.UI.SIZE\r\n\t\t\t}\r\n\t\t}, {\r\n\t\t\ttype : 'Ti.UI.Label',\r\n\t\t\tbindId : 'lblText3',\r\n\t\t\tproperties : {\r\n\t\t\t\tcolor : 'black',\r\n\t\t\t\twidth : Ti.UI.SIZE,\r\n\t\t\t\theight : Ti.UI.SIZE\r\n\t\t\t}\r\n\t\t}]\r\n\t}]\r\n};\r\n\r\nvar listItems = [];\r\nfor (var i = 0; i < 20; i++) {\r\n\tlistItems.push({\r\n\t\tlblText1 : {\r\n\t\t\ttext : i + ' small'\r\n\t\t},\r\n\t\tlblText2 : {\r\n\t\t\ttext : i + ' medium'\r\n\t\t},\r\n\t\tlblText3 : {\r\n\t\t\ttext : i + ' big'\r\n\t\t},\r\n\t\tproperties : {\r\n\t\t\tid : i,\r\n\t\t\tbackgroundColor : 'white',\r\n\t\t\theight : Ti.UI.SIZE,\r\n\t\t\tselectedBackgroundColor : 'gray'\r\n\t\t}\r\n\t});\r\n\r\n}\r\nvar listSection = Ti.UI.createListSection({\r\n\titems : listItems\r\n});\r\nvar listView = Ti.UI.createListView({\r\n\ttemplates : {\r\n\t\t'itemTemp' : itemTemplate\r\n\t},\r\n\tseparatorColor:'red',\r\n\tdefaultItemTemplate : 'itemTemp',\r\n\tsections : [listSection]\r\n});\r\n\r\naWindow.add(listView);\r\naWindow.open();\r\n{code}", "attachment": [ { "id": "50556", "filename": "ListViewScrollingIssue.png", "author": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-19T06:52:42.000+0000", "size": 73217, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: ListView ListItems disappear on scrolling when height set as TI.UI.SIZE", "creator": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appc Studio - 3.4.0.201408180158 \r\nSDK - 3.4.0.v20140815142514 \r\nacs - 1.0.16 \r\nalloy - 1.5.0-dev \r\nnpm - 1.3.2 \r\ntitanium - 3.4.0-dev \r\ntitanium-code-processor - 1.1.1 \r\nOS - mavericks (v10.9.4) \r\nXcode - 6Beta5\r\nDevice - Nexus5(v4.4.4)", "comment": { "comments": [ { "id": "319425", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces\r\n\r\nTitanium Command-Line Interface\r\nCLI version 3.3.0, \r\nTitanium SDK version 3.4.0\r\niOS Device : iphone 4, iOS 7.1\r\nAndroid device : Motorola Moto G, Android version : 4.4.4", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-20T05:55:51.000+0000", "updated": "2014-08-20T05:56:25.000+0000" }, { "id": "422962", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170623141152\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-27T18:19:19.000+0000", "updated": "2017-06-27T18:19:19.000+0000" }, { "id": "428917", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The fix for [TIMOB-25376] resolves this issue.\r\nClosing as duplicate.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-11T01:02:05.000+0000", "updated": "2017-10-11T01:02:05.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }