{ "id": "172113", "key": "AC-5856", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "10000", "description": "", "name": "Done" }, "resolutiondate": "2018-08-29T19:03:02.000+0000", "created": "2018-08-22T17:29:45.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-29T19:03:03.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "When attempting to create a Date Picker Spinner on Android, I get the calendar view instead of the spinner view. The flags calendarViewShown set to false and nativeSpinner set to true do not resolve the issue. The calendar has a poor user experience for users who use screen readers.\r\n\r\n\r\n{noformat}\r\nTi.UI.createPicker({\r\n\t\tcalendarViewShown : false,\r\n\t\tnativeSpinner : true,\r\n\t\ttype : Ti.UI.PICKER_TYPE_DATE\r\n\t}).showDatePickerDialog({\r\n\t\tvalue : new Date(),\r\n\t\tcallback : function(e) {\r\n\t\t\tif (!e.cancel) {\r\n\t\t\t\tTi.API.warn(String.formatDate(e.value, 'medium'));\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n{noformat}\r\n\r\n\r\n", "attachment": [ { "id": "65467", "filename": "BAD.jpg", "author": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-22T17:27:32.000+0000", "size": 109404, "mimeType": "image/jpeg" }, { "id": "65466", "filename": "GOOD.png", "author": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-22T17:27:32.000+0000", "size": 14840, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Cannot get date spinner to show up", "creator": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 7.2.0, 7.3.0, 6.3.1\r\nTitanium CLI 5.1.1\r\nNode.js 8.9.1", "comment": { "comments": [ { "id": "440999", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~jceaser],\r\n\r\nTitanium's {{nativeSpinner}} property is not supported by dialogs.\r\nIt is only supported by picker \"views\" whose {{type}} property is set to {{Ti.UI.PICKER_TYPE_TIME}}.\r\n\r\nFor example...\r\n{code:javascript}\r\nvar window = Ti.UI.createWindow({ layout: \"vertical\" });\r\nvar picker = Ti.UI.createPicker({\r\n\ttype: Ti.UI.PICKER_TYPE_TIME,\r\n\tnativeSpinner: true,\r\n\ttop: \"50dp\",\r\n});\r\nwindow.add(picker);\r\nwindow.open();\r\n{code}\r\n\r\nProbably not the answer you wanted. But that said, a picker \"view\" of type {{Ti.UI.PICKER_TYPE_DATE}} will be displayed as a spinner instead of a calendar. So, you may want to use a view instead. Especially since iOS does not support the {{showDatePickerDialog()}} method if you care about portability.\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-22T21:48:27.000+0000", "updated": "2018-08-22T21:48:27.000+0000" }, { "id": "441000", "author": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Joshua this is the whole issue, it is not being displayed as a spinner, but as a Calendar. We want to use the date spinner !GOOD.png|thumbnail! and we're getting the Calendar !BAD.jpg|thumbnail! ", "updateAuthor": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-22T21:53:50.000+0000", "updated": "2018-08-22T21:53:50.000+0000" }, { "id": "441001", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "My point is that we don't currently support this feature for \"dialogs\".\r\nWe only support it for \"views\" that you add to windows.\r\nNote the {{window.add(picker)}} I've shown above.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-22T22:03:20.000+0000", "updated": "2018-08-22T22:04:03.000+0000" }, { "id": "441137", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello [~jceaser],
 Hope you had a chance to review our last reply.Just following up to check the status and if you need further help on it. 

Please let us know. 
\r\nThanks", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-08-28T10:15:05.000+0000", "updated": "2018-08-28T10:15:05.000+0000" }, { "id": "441150", "author": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Yes we're good now.", "updateAuthor": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-28T14:56:57.000+0000", "updated": "2018-08-28T14:56:57.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }