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

Android: Ti.UI.Android.hideSoftKeyboard not working

    Details

      Description

      hideSoftKeyboard doesn't hide keyboard appropriately.

      var win = Ti.UI.createWindow({backgroundColor: '#000000'});
       
      var search = Titanium.UI.createSearchBar({
          barColor:'#000',
          showCancel:true,
          height:43,
          top:0
      });
       
      // create table view data object
      var data = [
          {title:'Row 1', hasChild:true, color:'red', selectedColor:'#fff'},
          {title:'Row 2', hasDetail:true, color:'green', selectedColor:'#fff'},
          {title:'Row 3', hasCheck:true, color:'blue', selectedColor:'#fff'},
          {title:'Row 4', color:'orange', selectedColor:'#fff'},
          {title:'Row 5'},
          {title:'Row 6'},
          {title:'Row 7'},
          {title:'Row 8'},
          {title:'Row 9'},
          {title:'Row 10'},
          {title:'Row 11'},
      ];
       
      // create table view
      var tableview = Titanium.UI.createTableView({
          data:data,
          search:search 
      });
       
      // add table view to the window
      win.add(tableview);
       
      search.addEventListener('focus', function(e) {
          Ti.UI.Android.hideSoftKeyboard();
      });
       
      win.open();
      
      

      1. Run code, you should not see keyboard.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hpham Hieu Pham
                Reporter:
                hpham Hieu Pham
                Reviewer:
                Ping Wang
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code