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

Android: Update Date/Time picker dialogs to use material theme

    Details

      Description

      Summary:
      We should replace our usage of the native Java DatePickerDialog and TimePickerDialog with the material MaterialDatePicker and MaterialTimePicker respectively.
      https://material.io/components/date-pickers
      https://material.io/components/time-pickers

      This effects the following Titanium APIs:

      Date Dialog Test:
      The date dialog can be tested with the DateDialogTest.js, which will display what's shown below.

      Time Dialog Test:
      The time dialog can be tested with the TimeDialogTest.js, which will display what's shown below.

      Breaking-Change:
      The app must use a "Theme.MaterialComponents" based theme or else an exception will occur. So, app's using a custom theme based from "Theme.AppCompat" or similar will crash. This is normal and the exception will state that the theme will need to change.

        Attachments

        1. DateDialogTest.js
          0.9 kB
        2. DateDialog-Android-Dark.png
          DateDialog-Android-Dark.png
          445 kB
        3. DateDialog-Android-Light.png
          DateDialog-Android-Light.png
          451 kB
        4. TimeDialog-Android-Dark.png
          TimeDialog-Android-Dark.png
          442 kB
        5. TimeDialog-Android-Light.png
          TimeDialog-Android-Light.png
          450 kB
        6. TimeDialogTest.js
          0.6 kB

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              jquick Joshua Quick
              Reviewer:
              Gary Mathews
              Tester:
              Satyam Sekhri
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration