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

Android: 'postlayout' event not working for Picker with type Titanium.UI.PICKER_TYPE_DATE

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 7.3.0
    • Component/s: Android
    • Labels:
      None

      Description

      Picker with type Titanium.UI.PICKER_TYPE_DATE does not fire postlayout after showDatePickerDialog() is called.
      It is the same for Picker added in the layout for Android Lollipop (API level 19) or newer. For API level below 19, Picker added in the layout the event is fired twice.

      Test case:
      app.js

      var win = Ti.UI.createWindow();
          picker = Ti.UI.createPicker({type: Ti.UI.PICKER_TYPE_DATE});
      picker.addEventListener('postlayout', function() {
          alert('Post layout!');
      });
      win.add(picker);
      win.open();
      //picker.showDatePickerDialog(); 
      

        Attachments

          Activity

            People

            • Assignee:
              ybanev Yordan Banev
              Reporter:
              ybanev Yordan Banev
              Reviewer:
              Gary Mathews
              Tester:
              Lokesh Choudhary
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-6305
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code