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

Android: Keyboard doesn't close in ActionBar-style tab group

    Details

      Description

      Related to the cloned issue, perhaps... When you focus a text field based tabgroup, then change tabs, the keyboard does not close.

      This is a regression in 3.0. This behavior does not occur in 2.1.3.GA.

      //
      // create base UI tab and root window
      //
      var tg = Ti.UI.createTabGroup();
      var win1 = Titanium.UI.createWindow({
      	title : 'Tab 1',
      	backgroundColor : '#fff',
      	layout : 'vertical'
      });
       
      var label1 = Titanium.UI.createLabel({
      	color : '#999',
      	text : 'I am Window 1',
      	font : {
      		fontSize : 20,
      		fontFamily : 'Helvetica Neue'
      	},
      	textAlign : 'center',
      	width : 'auto'
      });
       
      var tf = Titanium.UI.createTextField({
      	hintText : 'Hello',
      	width : 300,
      	color : 'white',
      	backgroundColor: '#333',
      });
       
       
      win1.add(label1);
      win1.add(tf);
       
      var tab1 = Ti.UI.createTab({
      	title : 'Quarks',
      	window : win1
      });
       
      tg.addTab(tab1);
       
      var win2 = Titanium.UI.createWindow({
      	title : 'Tab 2',
      	backgroundColor : '#f33',
      });
       
      var tab2 = Ti.UI.createTab({
      	title : 'Snoodles',
      	window : win2
      });
       
      tg.addTab(tab2);
      tg.open();
      

      Tested with SDK 3.0.0.v20121009034227.
      Nexus 7
      htc 4G LTE somethingerather
      Galaxy SII

      To Reproduce

      • Run sample code.
      • Click in text field.
      • Click "Snoodles".

      Expected Behavior

      Keyboard is dismissed when the tab changes.

      Actual Behavior

      There's a big ol' keyboard in front of my beautiful red window.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hpham Hieu Pham
                Reporter:
                aevans Arthur Evans
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration