{ "id": "172905", "key": "TIMOB-26793", "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": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-04-25T13:16:10.000+0000", "created": "2019-01-23T17:03:14.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "android", "optiondialog" ], "versions": [], "issuelinks": [ { "id": "57127", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "171949", "key": "TIMOB-26224", "fields": { "summary": "Android: Modify \"OptionDialog\" to display a list of normal buttons", "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": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-04-25T13:16: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": "The current OptionDialog displays the items on Android as RadioButtons. You don't have the possibility to hide those circles.\r\n\r\nTo create a dialog that looks more like the iOS version:\r\n !ti_option.png|thumbnail! \r\nI've added a parameter called {{textOnly}}\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\ttitle: 'Click window to test OptionDialog',\r\n\tbackgroundColor: 'white'\r\n});\r\n\r\nvar opts = {\r\n\ttitle: 'Select an option',\r\n\toptions: ['Option 1', 'Option 2', 'Option 3', 'Option 4'],\r\n\ttextOnly: true,\r\n\tbuttonNames: ['Cancel']\r\n}\r\n\r\nvar dialog;\r\nwin.addEventListener('click', function() {\r\n\tdialog = Ti.UI.createOptionDialog(opts);\r\n\r\n\tdialog.addEventListener('click', onSelectDialog);\r\n\tdialog.addEventListener('cancel', function(e) {\r\n\t\talert('Dialog canceled! e.cancel = ' + e.cancel + ', e.index = ' + e.index);\r\n\t})\r\n\r\n\tdialog.show();\r\n});\r\n\r\nfunction onSelectDialog(e) {\r\n\tconsole.log(e);\r\n}\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "66105", "filename": "ti_option.png", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-01-23T17:02:07.000+0000", "size": 22375, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Hide radio buttons OptionDialog", "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": null, "comment": { "comments": [ { "id": "445565", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/10645\r\n\r\nI've left the default to {{false}} (personally I would do it the other way round, so it will look more like iOS)", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-01-23T17:07:04.000+0000", "updated": "2019-01-23T17:07:04.000+0000" }, { "id": "445578", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is a duplicate of [TIMOB-26224].\r\n\r\nAnd yes, I agree that we should not display radio buttons in the option dialog by default. They look ridiculous when nothing is selected. It should be a vertical list of buttons instead... unless the \"selectedIndex\" property is set because that would check one of the radio buttons.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-23T18:58:07.000+0000", "updated": "2019-01-23T19:00:07.000+0000" }, { "id": "445581", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "oh sorry, didn't search for it before! Sounds like a good idea with the selectedIndex! I'll change that", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-01-23T19:06:11.000+0000", "updated": "2019-01-23T19:06:11.000+0000" }, { "id": "445582", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm willing to hear other solutions to this problem too. I do think they should be buttons by default, but I'm also wondering if existing Titanium developers who are setting the \"selectedIndex\" might actually want the radio button behavior too. That's partly what I'm concerned about.\r\n\r\nOr perhaps this should be done via a \"style\" property? Because we can display a list of options in different ways, that's for sure. I'm open to suggestions.\r\n\r\nHere's a link to Google's material design regarding dialogs.\r\nhttps://material.io/design/components/dialogs.html#usage\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-23T19:13:45.000+0000", "updated": "2019-01-23T19:13:45.000+0000" }, { "id": "446438", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~jquick] Can you assign 8.1.0 here so it doesn't get moved out for some reason? :)", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-03-01T11:14:53.000+0000", "updated": "2019-03-01T11:14:53.000+0000" }, { "id": "446493", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed, waiting on Jenkins to be ready for merge. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-04T16:08:49.000+0000", "updated": "2019-03-04T16:08:49.000+0000" }, { "id": "447955", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket, fix verified in SDK version {{8.1.0.v20190425050927}}\r\n\r\nTest and other information can be found at:\r\nhttps://github.com/appcelerator/titanium_mobile/pull/10645", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-04-25T13:16:03.000+0000", "updated": "2019-04-25T13:16:03.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }