Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-27840

Android: Add "Ti.UI.PICKER_TYPE_DATE_AND_TIME" support

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android

      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.

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              jquick Joshua Quick
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration