{ "id": "171084", "key": "TIMOB-25772", "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": null, "resolutiondate": null, "created": "2018-02-12T10:14:15.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:57.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "Hello,\r\n\r\nim using listview to display some data , and the problem is when i try to change the zIndex of a view inside the listView item it seems that it doesnt work on android.\r\nbellow you find a simple code to reproduce the issue\r\n\r\nindex.xml\r\n{code:java}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \t \t\t\r\n\r\n{code}\r\n\r\nindex.js\r\n\r\n{code:java}\r\nvar win = $.index;\r\nvar table = $.listView;\r\nvar items = [];\r\nvar data = {\r\n\t\"users\":[\r\n\t {\r\n\t \"guid\": \"4715dafd-c547-4db4-81db-bedb28e6daac\"\r\n\t }\r\n\t ]\r\n};\r\n\r\n\r\nfunction preprocessForListView (item) {\r\n\treturn {\r\n\t\t\t\t\r\n\t\t\t\tview1: {zIndex: 1}, // work\r\n\t\t\t\tview2: {zIndex : 2} // work\r\n\t\t};\r\n}\r\n\r\n\r\nwin.open();\r\n_.each(data.users, function(item){\r\n\titems.push(preprocessForListView(item));\r\n});\r\ntable.sections[0].appendItems(items , null);\r\n\r\n// here change the zIndex\r\nsetTimeout(function(){\r\n\tvar item = table.sections[0].getItems()[0];\r\n \titem.view1 = {zIndex : 2}; // doesn't work\r\n \titem.view2 = { zIndex : 1}; // doesn't work\r\n \ttable.sections[0].updateItemAt(0 , item , null);\r\n \t\r\n},2000);\r\n\r\n{code}\r\n\r\nSDK : 7.0.1.GA\r\n\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: zIndex issue with ListView", "creator": { "name": "bahinapster", "key": "bahinapster", "displayName": "Ibrahim MESLEM", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bahinapster", "key": "bahinapster", "displayName": "Ibrahim MESLEM", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android", "comment": { "comments": [ { "id": "434386", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I was able to reproduce the issue with SDK 7.0.1.GA in Android. I see changeing the zIndex of a view inside the listView item doesn't work on android. In iOS it's fine. Moving to TIMOB. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-02-12T21:58:30.000+0000", "updated": "2018-02-12T21:58:30.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }