Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10549] Android: Tableview:Row is not getting focused and soft keyboard do not gets displayed on screen.(specific to Galaxy Nexus)

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionNot Our Bug
Resolution Date2017-07-05T17:27:49.000+0000
Affected Version/sRelease 2.1.2
Fix Version/sn/a
ComponentsAndroid
Labelsapi, qe-and082012
ReporterShyam Bhadauria
AssigneeEric Merriman
Created2012-08-22T05:18:49.000+0000
Updated2017-07-05T17:27:49.000+0000

Description

This is not a regression. It occurs as far as 2.0.1. This issue is occurring only on Samsung Galaxy Nexus device. It is working fine on emulator android 2.2, Samsung GALAXY Note Android 2.3.6 and Motorola Milestone Android 2.2.1. The app contains tableview. Its data has tableviewrow which contains textfield in it. So when this textfield is focused to bring up the softkeyboard, the focus is lost from the textfield with soft keyboard remaining visible on the screen.Even after multiple clicks, the textfield is not focused. But once the device is rotated to landscape mode(following same action as done in portrait mode), and then brought back to portrait, it shows the same behavior as TIMOB-10548. Steps to reproduce: 1) Use the code below and run the app
var win = Ti.UI.createWindow({
	fullscreen : false ,
	backgroundColor : 'white'
});
		
		var tableView = Ti.UI.createTableView({
		    top : '0dp',
		    bottom : '0dp',
		    left : '0dp',
		    right : '0dp'
		});
		 
		var numRows = 15;
		var rows = [];
	
		for (var i = 0; i < numRows; i++){
		    var tableViewRow = Ti.UI.createTableViewRow({
		        height : 'auto'
		    });
		     
		    var textField = Ti.UI.createTextField({
		        top:'0dp',
		        left : '5dp',
		        right : '5dp',
		        borderColor : '#CCCCCC',
		        borderStyle : Ti.UI.INPUT_BORDERSTYLE_BEZEL
		    });
		     
		    tableViewRow.add(textField);
		    rows.push(tableViewRow);
		}
		tableView.data = rows;
		win.add(tableView);
		win.open();
2. Click any textfield to bring up the soft keyboard 3. Rotate the device to landscape mode. 4. Click on any textfield to bring up soft keyboard. 5. Click 'next' on soft keyboard to navigate through textfields. Keep on clicking until it disappears. 6. Rotate the device to portrait mode and click textfield. Expected result: 2. After step 2, the soft keyboard should pop up on the screen and textfield should remain focused for writing into it. 4. After step 4, soft keyboard is displayed. 6. After step 6, the soft keyboard should pop up on the screen and textfield should remain focused for writing into it. Actual result: 2. After step 2, the soft keyboard is displayed on screen and focus on textfield is never attained(even after multiple clicks). 4. After step 4, soft keyboard is displayed(if not,click once more to bring up soft keyboard) 6. After step 6, the soft keyboard is displayed on screen but focus on textfield is lost.User has to click once more to bring the focus on textfield and to do entry into it.

Comments

  1. jithinpv 2013-03-18

    device specific jithinpv
  2. Lee Morris 2017-07-05

    Closing with reference to the above comment.

JSON Source