{ "id": "175925", "key": "TIMOB-28300", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-03-05T15:57:06.000+0000", "created": "2020-12-19T04:28:18.000+0000", "epic": { "id": 175923, "key": "TIMOB-28298", "name": "Android: Material widget support", "summary": "Android: Material widget support", "color": { "key": "color_1" }, "done": false }, "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "material-design", "material-theme", "style", "switch" ], "versions": [], "issuelinks": [ { "id": "59071", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "175927", "key": "TIMOB-28302", "fields": { "summary": "macOS: Add checkbox style to Ti.UI.Switch ", "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": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-03-05T15:57: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\nGoogle supports a material \"Chip\" widget which is checkable. Our {{Ti.UI.Switch}} view should offer this as a style.\r\nhttps://material.io/components/chips\r\n\r\n*To-Do:*\r\nUpdate our [style|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Switch-property-style] property to support the following Android-only constant.\r\n* Ti.UI.SWITCH_STYLE_CHIP\r\n\r\nThis can be implemented via the Java [Chip|https://developer.android.com/reference/com/google/android/material/chip/Chip] class.\r\n\r\n*Test Code:*\r\nEach switch style can be tested with the attached [^SwitchStyleTest.js], which will display what's shown below.\r\n !Switch-Android-Light.png|thumbnail! !Switch-Android-Dark.png|thumbnail! \r\n\r\n*Note:*\r\nThe app must use a \"Theme.MaterialComponents\" based theme or else an exception will occur. So, app's using a custom theme based from \"Theme.AppCompat\" or similar will crash. This is normal and the exception will state that the theme will need to change.\r\n", "attachment": [ { "id": "67810", "filename": "Switch-Android-Dark.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-02-23T02:50:55.000+0000", "size": 417430, "mimeType": "image/png" }, { "id": "67811", "filename": "Switch-Android-Light.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-02-23T02:50:55.000+0000", "size": 419866, "mimeType": "image/png" }, { "id": "67809", "filename": "SwitchStyleTest.js", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-02-23T02:50:22.000+0000", "size": 1171, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "Android: Add material \"chip\" style to Ti.UI.Switch", "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": "457942", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/12353", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-12-19T10:03:33.000+0000", "updated": "2020-12-19T10:03:33.000+0000" }, { "id": "458338", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed, waiting on Jenkins build and backport", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-03-04T15:57:26.000+0000", "updated": "2021-03-04T15:57:26.000+0000" }, { "id": "458347", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master and 10_0_X for 10.0.0 release target.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-03-05T15:57:03.000+0000", "updated": "2021-03-05T15:57:03.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }