{ "id": "176164", "key": "TIMOB-28426", "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": "21199", "description": "", "name": "Release 10.0.1", "archived": false, "released": true, "releaseDate": "2021-07-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-05-26T15:33:06.000+0000", "created": "2021-04-24T03:26:07.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "date", "material-design", "parity", "picker", "time" ], "versions": [], "issuelinks": [ { "id": "59257", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "176165", "key": "TIMOB-28427", "fields": { "summary": "Android: Add \"borderStyle\" and \"hintText\" properties to Ti.UI.Picker", "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-05-26T15:33: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\nThe {{Ti.UI.Picker}} view's [datePickerStyle|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Picker-property-datePickerStyle] is currently iOS only. We should add support on Android. In particular, we should add the \"compact\" style which shows the picker as a read-only text field, and when tapped on, show a date/time selection dialog which matches Google's design guidelines.\r\n\r\nThe \"datePickerStyle\" property needs to be supported by the following types on Android:\r\n* [PICKER_TYPE_DATE|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI-property-PICKER_TYPE_DATE]\r\n* [PICKER_TYPE_TIME|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI-property-PICKER_TYPE_TIME]\r\n\r\n*Style Constants:*\r\nCopy the following constants from {{Ti.UI.iOS}} to {{Ti.UI}}. Using the old constants should cause a deprecation warning on iOS.\r\n* [Ti.UI.iOS.DATE_PICKER_STYLE_AUTOMATIC|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iOS-property-DATE_PICKER_STYLE_AUTOMATIC]\r\n* [Ti.UI.iOS.DATE_PICKER_STYLE_COMPACT|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iOS-property-DATE_PICKER_STYLE_COMPACT]\r\n* [Ti.UI.iOS.DATE_PICKER_STYLE_INLINE|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iOS-property-DATE_PICKER_STYLE_INLINE]\r\n* [Ti.UI.iOS.DATE_PICKER_STYLE_WHEELS|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iOS-property-DATE_PICKER_STYLE_WHEELS]\r\n\r\n*Note:*\r\nIf the Android only boolean properties [useSpinner|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Picker-property-useSpinner] or [nativeSpinner|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Picker-property-nativeSpinner] are defined, then they must take priority over the [datePickerStyle|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Picker-property-datePickerStyle] property to maintain backward compatibility. When these boolean properties are set true, then they must do the equivalent of {{DATE_PICKER_STYLE_WHEELS}}.\r\n\r\n*Compact/Automatic Date Style:*\r\nAndroid should show a read-only text field with a drop-down arrow. When tapped on, a selection dialog should appear.\r\n !PickerDate-Compact-Android.png|thumbnail! !PickerDate-CompactDialog-Android.png|thumbnail! \r\n\r\nThe iOS equivalent is this...\r\n !PickerDate-Compact-iOS.png|thumbnail! !PickerDate-CompactDialog-iOS.png|thumbnail! \r\n\r\n*Compact/Automatic Time Style:*\r\nOn Android it will appear as follows...\r\n !PickerTime-Compact-Android.png|thumbnail! !PickerTime-CompactDialog-Android.png|thumbnail! \r\n\r\nThe iOS equivalent is this...\r\n !PickerTime-Compact-iOS.png|thumbnail! !PickerTime-CompactDialog-iOS.png|thumbnail! \r\n\r\n*Inline Date Style:*\r\nThe picker appears as a calendar view.\r\n !PickerDate-Inline-Android.png|thumbnail! !PickerDate-Inline-iOS.png|thumbnail! \r\n\r\n*Inline Time Style:*\r\nThe picker appears as a clock view on Android and a field with spinners on iOS.\r\n !PickerTime-Inline-Android.png|thumbnail! !PickerTime-Inline-iOS.png|thumbnail! \r\n\r\n*Wheels Date Style:*\r\nSpinner picker wheels appear for selecting month, day, and year.\r\n !PickerDate-Wheels-Android.png|thumbnail! !PickerDate-Wheels-iOS.png|thumbnail! \r\n\r\n*Wheels Time Style:*\r\nSpinner picker wheels appear for selecting hours, minutes, and AM/PM.\r\n !PickerTime-Wheels-Android.png|thumbnail! !PickerTime-Wheels-iOS.png|thumbnail! \r\n\r\n", "attachment": [ { "id": "67884", "filename": "DatePickerStyleTest.js", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-24T03:12:48.000+0000", "size": 1476, "mimeType": "application/x-javascript" }, { "id": "67888", "filename": "PickerDate-Compact-Android.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-24T03:12:34.000+0000", "size": 415708, "mimeType": "image/png" }, { "id": "67887", "filename": "PickerDate-CompactDialog-Android.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-24T03:12:33.000+0000", "size": 468192, "mimeType": "image/png" }, { "id": "67882", "filename": "PickerDate-CompactDialog-iOS.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-24T03:15:39.000+0000", "size": 984577, "mimeType": "image/png" }, { "id": "67883", "filename": "PickerDate-Compact-iOS.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-24T03:15:43.000+0000", "size": 793977, "mimeType": "image/png" }, { "id": "67886", "filename": "PickerDate-Inline-Android.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-24T03:12:34.000+0000", "size": 449934, "mimeType": "image/png" }, { "id": "67881", "filename": "PickerDate-Inline-iOS.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-24T03:15:38.000+0000", "size": 850065, "mimeType": "image/png" }, { "id": "67885", "filename": "PickerDate-Wheels-Android.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-24T03:12:33.000+0000", "size": 424032, "mimeType": "image/png" }, { "id": "67880", "filename": "PickerDate-Wheels-iOS.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-24T03:15:39.000+0000", "size": 840019, "mimeType": "image/png" }, { "id": "67890", "filename": "PickerTime-Compact-Android.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-24T03:33:25.000+0000", "size": 414808, "mimeType": "image/png" }, { "id": "67891", "filename": "PickerTime-CompactDialog-Android.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-24T03:33:24.000+0000", "size": 468931, "mimeType": "image/png" }, { "id": "67895", "filename": "PickerTime-CompactDialog-iOS.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-24T03:37:30.000+0000", "size": 912416, "mimeType": "image/png" }, { "id": "67894", "filename": "PickerTime-Compact-iOS.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-24T03:37:28.000+0000", "size": 791083, "mimeType": "image/png" }, { "id": "67892", "filename": "PickerTime-Inline-Android.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-24T03:33:23.000+0000", "size": 447141, "mimeType": "image/png" }, { "id": "67896", "filename": "PickerTime-Inline-iOS.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-24T03:37:29.000+0000", "size": 796295, "mimeType": "image/png" }, { "id": "67893", "filename": "PickerTime-Wheels-Android.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-24T03:33:19.000+0000", "size": 419021, "mimeType": "image/png" }, { "id": "67897", "filename": "PickerTime-Wheels-iOS.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-24T03:37:30.000+0000", "size": 813208, "mimeType": "image/png" }, { "id": "67889", "filename": "TimePickerStyleTest.js", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-24T03:30:08.000+0000", "size": 1497, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "Android: Add \"datePickerStyle\" support to Ti.UI.Picker", "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": "458613", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/12745", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-24T05:30:05.000+0000", "updated": "2021-04-24T05:30:05.000+0000" }, { "id": "458712", "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.1 target", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-05-26T15:33:02.000+0000", "updated": "2021-05-26T15:33:02.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }