{ "id": "134003", "key": "TIMOB-17443", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2019-03-29T00:19:00.000+0000", "created": "2014-07-31T23:12:32.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "2019-cl", "supportTeam" ], "versions": [], "issuelinks": [ { "id": "39496", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "60682", "key": "TIMOB-50", "fields": { "summary": "API - Titanium.UI.createSwitch (Android)", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "44272", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "115730", "key": "TIMOB-14178", "fields": { "summary": "Android: Real Switch on Android", "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": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2019-03-29T00:21:08.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": "h3. Request\r\n\r\nCurrently when we create a Switch with the Titanium SDK in Android we are able to create a Toggle button, since Android 4.0 a new component has been include in the Android SDK called Switch which allow the user to create a toggle button in the form of a slider.\r\n\r\nCustomer would like to have the Switch available in order to be used in the UI.\r\n\r\nh3. Info\r\n\r\nhttps://developer.android.com/guide/topics/ui/controls/togglebutton.html\r\nhttps://developer.android.com/reference/android/widget/Switch.html", "attachment": [], "flagged": false, "summary": "Android: Include native Switch UI element", "creator": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Android: 4.x", "comment": { "comments": [ { "id": "316660", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Do you have a suggestion on what we should call it? Or is it a parameter passed to the create command?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-01T16:43:22.000+0000", "updated": "2014-08-01T16:43:22.000+0000" }, { "id": "316665", "author": { "name": "tcrist", "key": "tcrist", "displayName": "Travis Crist", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ingo,\r\n\r\nI'm not sure if this is directed at me, but since I requested the feature I'll chime in. I think passing in a parameter would make the most sense. Maybe for android there could be a switchType parameter and it could be set to 'toggle' or 'switch'. I don't think a new command makes sense since its already called createSwitch and we want the switch. If you made a createToggle command and modified createSwitch there could be backwards compatibility issues so I think having a new parameter passed in makes the most sense. If the parameter is not set then it would default to the 'toggle' state to preserve backwards compatibility. \r\n\r\nI hope that helps,\r\nTravis", "updateAuthor": { "name": "tcrist", "key": "tcrist", "displayName": "Travis Crist", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-01T16:52:47.000+0000", "updated": "2014-08-01T16:52:47.000+0000" }, { "id": "337125", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2014-12-19T06:57:48.000+0000", "updated": "2014-12-19T06:57:48.000+0000" }, { "id": "447358", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The \"slider\" style switch button was implemented in 2014 by [TIMOB-14178]. Can be seen in our docs here...\r\nhttps://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Switch\r\n\r\nClosing as duplicate.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-29T00:21:08.000+0000", "updated": "2019-03-29T00:21:08.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }