{ "id": "152805", "key": "TIMOB-19912", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-04-02T09:56:37.000+0000", "created": "2015-11-07T10:51:16.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "imageview", "parity" ], "versions": [], "issuelinks": [ { "id": "52087", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "161387", "key": "TIMOB-23565", "fields": { "summary": "iOS: TintColor for ImageView (Parity)", "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": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-06-27T21:06:28.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": "Adding tintColor property to Android using ImageView.setColorFilter()\r\n\r\nPull Request: \r\nhttps://github.com/appcelerator/titanium_mobile/pull/7877\r\n\r\n{code:java}\r\n$.img2.setTintColor(\"#FF0000\");\r\n$.img3.tintColor = \"#F0FF0F\";\r\n$.index.open();\r\n{code}\r\n\r\n{code:java}\r\n\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\n{code:java}\r\n\".container\" : {\r\n backgroundColor: \"white\"\r\n}\r\n\"#img1\" : {\r\n image: \"/images/img.png\",\r\n top: 0,\r\n width: 150,\r\n height: 150\r\n}\r\n\"#img2\" : {\r\n image: \"/images/img.png\",\r\n width: 150,\r\n height: 150\r\n}\r\n\r\n\"#img3\" : {\r\n image: \"/images/img.png\",\r\n bottom: 0,\r\n width: 150,\r\n height: 150\r\n}\r\n{code}", "attachment": [ { "id": "57324", "filename": "ezgif.com-optimize(1).gif", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-07T12:50:15.000+0000", "size": 285398, "mimeType": "image/gif" }, { "id": "57323", "filename": "tint.png", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-07T10:50:50.000+0000", "size": 78623, "mimeType": "image/png" } ], "flagged": false, "summary": "tintColor for Android ImageView", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Android", "closedSprints": [ { "id": 529, "state": "closed", "name": "2015 Sprint 24 SDK", "startDate": "2015-11-21T01:30:12.670Z", "endDate": "2015-12-05T01:30:00.000Z", "completeDate": "2015-12-07T03:57:17.094Z", "originBoardId": 114 }, { "id": 614, "state": "closed", "name": "2016 Sprint 07 SDK", "startDate": "2016-03-26T00:38:56.432Z", "endDate": "2016-04-09T00:38:00.000Z", "completeDate": "2016-04-11T04:41:08.231Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "369325", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "-https://github.com/appcelerator/titanium_mobile/pull/7410- (old PR)\r\n\r\nPull request is \"work in progress\". I still need to update the documentation but it's working already (see attachment)", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-07T10:52:08.000+0000", "updated": "2016-03-23T19:52:25.000+0000" }, { "id": "369326", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "fixed 'UI Thread' errors. GIF showing setTintColor in touchstart/touchend event", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-07T12:50:34.000+0000", "updated": "2015-11-07T12:51:10.000+0000" }, { "id": "380548", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "new clean pull request: https://github.com/appcelerator/titanium_mobile/pull/7877\r\n\r\nWill create a diffrerent PR for Ti.UI.Button.image tintColor", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-03-23T19:52:10.000+0000", "updated": "2016-03-23T19:52:10.000+0000" }, { "id": "381344", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR approved, great work [~michael]!\r\n\r\nDemo:\r\n{code:javascript}\r\n\r\nvar win1 = Titanium.UI.createWindow({\r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar img = Ti.UI.createImageView({\r\n image: \"KS_nav_ui.png\",\r\n tintColor: \"red\",\r\n top: 20\r\n});\r\n\r\nvar img2 = Ti.UI.createImageView({\r\n image: \"KS_nav_ui.png\",\r\n tintColor: \"#ff0\",\r\n top: 200\r\n});\r\n\r\nsetTimeout(function() {\r\n img.setTintColor(\"#ff0\");\r\n img2.setTintColor(\"red\");\r\n},3000);\r\n\r\nwin1.add(img);\r\nwin1.add(img2);\r\n\r\nwin1.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-02T09:55:53.000+0000", "updated": "2016-04-02T09:57:00.000+0000" }, { "id": "389169", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\n{{tintColor}} for ImageView works as expected.\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.7.0.201606150733\r\nTi SDK : 5.4.0.v20160617074028\r\nTi CLI : 5.0.9\r\nAlloy : 1.9.0\r\nMAC El Capitan : 10.11.4\r\nAppc NPM : 4.2.7-2\r\nAppc CLI : 5.4.0-18\r\nNode: 4.4.4\r\nNexus 6 - Android 6.0.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-06-27T21:00:06.000+0000", "updated": "2016-06-27T21:00:06.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }