{ "id": "176188", "key": "TIMOB-28447", "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": "21201", "description": "", "name": "Release 10.1.0", "archived": false, "released": true, "releaseDate": "2021-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-08-03T10:46:06.000+0000", "created": "2021-05-14T05:48:51.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "ImageView", "android", "touch" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-08-03T10:46:06.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": "*Summary:*\r\nOn Android, the [touchFeedback|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.View-property-touchFeedback] property applies ripple effect to a view's \"background\" when the view is touched. When applied to a {{Ti.UI.ImageView}}, this ripple effect can't be seen if the image is opaque (ie: not transparent) and completely covers the view. This is not a bug, but app developers would like the ability to apply a touch ripple effect to the foreground \"image\".\r\n\r\n*Feature Proposal:*\r\nAdd the following properties to {{Ti.UI.ImageView}}...\r\n* {{imageTouchFeedback}} // boolean\r\n* {{imageTouchFeedbackColor}} // optional string\r\n\r\nWhen the new \"imageTouchFeedback\" property is set {{true}}, the ripple effect should be applied to the foreground image assigned via the \"image\" property.\r\n\r\n*Example Code:*\r\n{code:javascript}\r\nconst window = Ti.UI.createWindow();\r\nwindow.add(Ti.UI.createImageView({\r\n\timage: \"https://raw.githubusercontent.com/appcelerator/titanium_mobile/master/tests/Resources/ExifRotate90.jpg\",\r\n\timageTouchFeedback: true,\r\n\timageTouchFeedbackColor: \"yellow\",\r\n\tautorotate: true,\r\n}));\r\nwindow.open();\r\n{code}\r\n\r\n*Work-Around:*\r\nFor older Titanium versions, you can apply a touch ripple effect via the \"backgroundImage\" instead. The downside with this is that images are not loaded asynchronously via this property and the EXIF orientation is ignored.\r\n", "attachment": [], "flagged": false, "summary": "Android: Add \"imageTouchFeedback\" to Ti.UI.ImageView", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "458680", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/12814", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-05-14T06:03:29.000+0000", "updated": "2021-05-14T06:03:29.000+0000" }, { "id": "458944", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Merged", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2021-08-03T10:46:04.000+0000", "updated": "2021-08-03T10:46:04.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }