{ "id": "97458", "key": "TIMOB-10364", "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": [ { "id": "15691", "description": "2013 Sprint 19", "name": "2013 Sprint 19", "archived": true, "released": true, "releaseDate": "2013-09-20" }, { "id": "15693", "description": "2013 Sprint 19 API", "name": "2013 Sprint 19 API", "archived": true, "released": true, "releaseDate": "2013-09-20" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-09-10T20:48:11.000+0000", "created": "2012-07-17T02:27:07.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "parity", "qe-testadded" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "29106", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "103909", "key": "TIMOB-14008", "fields": { "summary": "Android: layout vertical and zIndex problem", "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" } }, "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": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2014-03-12T06:27:12.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": "When you add two views to a scrollview and try to set zIndex on runtime, nothing happens. It works when added to a view or a window. \r\n\r\nExample code: \r\n\r\n{code:javascript}var win = Ti.UI.createWindow({ \r\nbackgroundColor : \"#FFF\" \r\n}); \r\n\r\nvar scrollview = Titanium.UI.createScrollView({ \r\ncontentHeight : '700dp' \r\n}); \r\n\r\nvar viewYellow = Titanium.UI.createView({ \r\ntop : 10, \r\nleft : 10, \r\nwidth : 100, \r\nheight : 100, \r\nbackgroundColor : 'yellow', \r\nzIndex : 1 \r\n}); \r\n\r\nvar viewRed = Titanium.UI.createView({ \r\ntop : 60, \r\nleft : 60, \r\nwidth : 100, \r\nheight : 100, \r\nbackgroundColor : 'red', \r\nzIndex : 2 \r\n}); \r\n\r\nvar buttonChange = Titanium.UI.createButton({ \r\nwidth : 120, \r\nheight : 50, \r\nright : 10, \r\ntop : 10, \r\ntitle : 'Change' \r\n}); \r\n\r\nscrollview.add(viewYellow); \r\nscrollview.add(viewRed); \r\nscrollview.add(buttonChange); \r\nwin.add(scrollview); \r\n\r\nvar i = 0; \r\n\r\nbuttonChange.addEventListener('click', function() { \r\nif (i % 2 == 0) { \r\nviewYellow.setZIndex(3); \r\nviewRed.setZIndex(1); \r\ni++; \r\n} else { \r\nviewYellow.setZIndex(1); \r\nviewRed.setZIndex(3); \r\ni++; \r\n} \r\n}); \r\n\r\nwin.open();{code}", "attachment": [], "flagged": false, "summary": "Android: Setting zIndex on views inside ScrollView doesn't work", "creator": { "name": "koesh", "key": "koesh", "displayName": "Ernesto Lage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "koesh", "key": "koesh", "displayName": "Ernesto Lage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio 2.1.0\r\nTitanium SDK 2.1.0\r\nandroid 2.2\r\nLG Optimus V", "comment": { "comments": [ { "id": "243128", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "When test case is loaded it shows Runtime Error\n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 (03/11/13 15:43 0c88429)\nTitanium SDK version: 3.0.2 (02/07/13 16:46 a4def81)\nDevice: Samsung galaxy s duos Android version: 4.0.4\n\njithinpv", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-20T10:25:40.000+0000", "updated": "2013-03-20T10:25:40.000+0000" }, { "id": "254368", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed on Samsung Galaxy S2 Android 2.3.6, Ti SDK 3.1 GA and 3.2 CI. Updated test case to be runnable.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-28T20:18:26.000+0000", "updated": "2013-05-28T20:18:26.000+0000" }, { "id": "262283", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "PR :-\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4458", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-07-18T04:41:08.000+0000", "updated": "2013-07-18T04:41:08.000+0000" }, { "id": "276325", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Setting zIndex on views inside ScrollView works fine.\r\n\r\nVerified fix on:\r\nDevice : HTC desire V , Android version : 4.0.3\r\nSDK: 3.2.0.v20131022171645\r\nCLI version : 3.2.0\r\nOS : MAC OSX 10.8.4\r\nAlloy : 1.2.2\r\nAppcelerator Studio, build: 3.2.0.201310181700\r\nXCode : 5\r\n", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-10-23T10:04:30.000+0000", "updated": "2013-10-23T10:04:30.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }