Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27840] Android: Add "Ti.UI.PICKER_TYPE_DATE_AND_TIME" support

GitHub Issuen/a
TypeImprovement
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, date, parity, picker, time
ReporterJoshua Quick
AssigneeJoshua Quick
Created2020-04-11T00:56:19.000+0000
Updated2020-04-11T01:00:15.000+0000

Description

*Summary:* The Ti.UI.Picker type PICKER_TYPE_DATE_AND_TIME is currently an iOS only feature. https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Picker-property-type We should add support to Android for parity with iOS. *Note:* Android does natively support a date-only and time-only pickers. Just not both. * PICKER_TYPE_DATE * PICKER_TYPE_TIME *Recommended Solution:* Use a horizontal layout to contain to clickable labels. The left-aligned label will display the date and the right-aligned label will display the time. When tapping on them, their respective native date or time dialog will appear. [ [DateLabel] [TimeLabel] ] This is how Google's Calendar app displays date/time fields when you under the "Add Event" window as can be seen below. !Android-DateTimeField.png|thumbnail! !Android-DateDialog.png|thumbnail! !Android-TimeDialog.png|thumbnail!

Attachments

FileDateSize
Android-DateDialog.png2020-04-11T00:55:59.000+0000174574
Android-DateTimeField.png2020-04-11T01:00:15.000+0000174006
Android-TimeDialog.png2020-04-11T00:56:02.000+0000176222

Comments

No comments

JSON Source