Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11356] Android: Keyboard doesn't close in ActionBar-style tab group

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-10-13T00:16:18.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.0.0, Release 3.1.0, 2012 Sprint 21 API, 2012 Sprint 21
ComponentsAndroid
Labelsqe-review, qe-testadded, regression, tabgroup
ReporterArthur Evans
AssigneeHieu Pham
Created2012-10-10T18:17:55.000+0000
Updated2012-10-25T11:17:34.000+0000

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.

Comments

  1. Hieu Pham 2012-10-13

    3.0.X PR: https://github.com/appcelerator/titanium_mobile/pull/3201 Master PR: https://github.com/appcelerator/titanium_mobile/pull/3186
  2. Anshu Mittal 2012-10-25

    Tested with: SDK:3.0.0.v20121024144610, 3.1.0.v20121024131714 Studio: 3.0.0.201210220122 Device:HTC Desire V(Android 4.0.3) Keyboard gets closed in ActionBar-style tab group

JSON Source