{ "id": "176265", "key": "TIMOB-28517", "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": "21243", "description": "", "name": "Release 10.0.2", "archived": false, "released": true, "releaseDate": "2021-08-10" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-08-09T10:24:11.000+0000", "created": "2021-08-06T03:21:06.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "CardView", "android", "touchfeedback" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-08-09T10:24:11.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\nThe [Ti.UI.Android.CardView|https://titaniumsdk.com/api/titanium/ui/android/cardview.html] has always ignored the \"touchFeedback\" and \"touchFeedbackColor\" properties and would never show a ripple effect. Now that Titanium 10.x.x uses the Java {{MaterialCardView}} widget, we shouldn't ignore these properties anymore because this native \"material\" widget shows a ripple effect by default.\r\n\r\n*Steps to reproduce:*\r\n# Build and run the below on Android.\r\n# Tap on the card view in the app.\r\n# Notice the ripple effect is gray and not yellow. _(This is the bug.)_\r\n\r\n{code:javascript}\r\nconst window = Ti.UI.createWindow();\r\nconst cardView = Ti.UI.Android.createCardView({\r\n\televation: 20,\r\n//\ttouchFeedback: false,\r\n\ttouchFeedbackColor: \"yellow\",\r\n\ttop: \"20dp\",\r\n\tleft: \"20dp\",\r\n\tbottom: \"20dp\",\r\n\tright: \"20dp\",\r\n});\r\ncardView.add(Ti.UI.createLabel({\r\n\ttext: 'Tap Me',\r\n\ttouchEnabled: false,\r\n}));\r\nwindow.add(cardView);\r\nwindow.open();\r\n{code}\r\n\r\n*Note:*\r\nAs of Titanium 10.0.0, setting the \"touchFeedback\" and \"touchFeedbackColor\" properties causes the following warning message to be logged. We should resolve this issue too.\r\n{code}\r\n[INFO] MaterialCardView: Setting a custom background is not supported.\r\n{code}\r\n\r\n*Work-Around:*\r\nAdd a view to the CardView and set it up with touch feedback.\r\n", "attachment": [], "flagged": false, "summary": "Android: CardView \"touchFeedbackColor\" property is ignored", "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": "458961", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/13000", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-08-06T03:53:07.000+0000", "updated": "2021-08-06T03:53:07.000+0000" }, { "id": "458970", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Merged to master and 10_0_X", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2021-08-09T10:23:42.000+0000", "updated": "2021-08-09T10:23:42.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }