Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11396] Android: Soft keyboard does not show when clicking on TextField

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-06-21T10:03:38.000+0000
Affected Version/sRelease 3.1.0
Fix Version/sRelease 3.1.0, 2012 Sprint 21 API, 2012 Sprint 21
ComponentsAndroid
Labelskitchensink, qe-testadded
ReporterPing Wang
AssigneePing Wang
Created2012-10-11T21:35:27.000+0000
Updated2013-06-21T10:03:38.000+0000

Description

This is a regression in 3.1.0 introduced by [PR#3095](https://github.com/appcelerator/titanium_mobile/pull/3095/)
//
// 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();

To Reproduce

- Run sample code. - Click in text field.

Expected Behavior

Keyboard pops up.

Actual Behavior

Keyboard does not show

Comments

  1. Ping Wang 2012-10-11

    PR https://github.com/appcelerator/titanium_mobile/pull/3182
  2. Anshu Mittal 2013-01-21

    Tested with: SDK:3.1.0.v20130114171802 Studio:3.0.1.201212181159 Device: LG-p970 Soft keyboard shown successfully on clicking textfield
  3. Priya Agarwal 2013-06-21

    Reopening just to update label.
  4. Priya Agarwal 2013-06-21

    Updated label and verified. Tested on: Device: Nexus 7 tab Android Version 4.1 SDK:3.1.2.v20130619101604 Appcelerator Studio: 3.1.1.201306131423 OS: OSX 10.8 acs:1.0.3 alloy:1.1.3 npm:1.2.14 titanium:3.1.1 titanium-code-processor:1.0.1

JSON Source