{ "id": "99597", "key": "TIMOB-10548", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "15498", "description": "2013 Sprint 12 API", "name": "2013 Sprint 12 API", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-06-14T18:50:24.000+0000", "created": "2012-08-22T05:08:38.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "qe-and082012" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "29591", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "111569", "key": "TIMOB-13173", "fields": { "summary": "Android: TableView: Softkeyboard appears on clicking any tableviewrow but immediately disappear", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "29593", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "90788", "key": "TIMOB-8869", "fields": { "summary": "Android: soft keyboard is covering the tableViewRow textField ", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-29T22:39:14.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "This is not a regression. It occurs as far as 2.0.1. \r\nHowever it works fine with 1.8.2.\r\n\r\nThe app contains tableview. Its data has tableviewrow which contains textfield in it.\r\nSo 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.User has to click once more to bring the focus on textfield and to do entry into it.\r\n\r\nSteps to reproduce:\r\n1) Use the code below and run the app\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tfullscreen : false ,\r\n\tbackgroundColor : 'white'\r\n});\r\n\t\t\r\n\t\tvar tableView = Ti.UI.createTableView({\r\n\t\t top : '0dp',\r\n\t\t bottom : '0dp',\r\n\t\t left : '0dp',\r\n\t\t right : '0dp'\r\n\t\t});\r\n\t\t \r\n\t\tvar numRows = 15;\r\n\t\tvar rows = [];\r\n\t\r\n\t\tfor (var i = 0; i < numRows; i++){\r\n\t\t var tableViewRow = Ti.UI.createTableViewRow({\r\n\t\t height : 'auto'\r\n\t\t });\r\n\t\t \r\n\t\t var textField = Ti.UI.createTextField({\r\n\t\t top:'0dp',\r\n\t\t left : '5dp',\r\n\t\t right : '5dp',\r\n\t\t borderColor : '#CCCCCC',\r\n\t\t borderStyle : Ti.UI.INPUT_BORDERSTYLE_BEZEL\r\n\t\t });\r\n\t\t \r\n\t\t tableViewRow.add(textField);\r\n\t\t rows.push(tableViewRow);\r\n\t\t}\r\n\t\ttableView.data = rows;\r\n\t\twin.add(tableView);\r\n\t\twin.open();\r\n{code}\r\n\r\n2. Click any textfield to bring up the soft keyboard\r\n\r\nExpected result:\r\n2. After step 2, the soft keyboard should pop up on the screen and textfield should remain focused for writing into it.\r\n\r\nActual result:\r\n2. After step 2, the soft keyboard is displayed on screen but focus on textfield is lost", "attachment": [], "flagged": false, "summary": "Android:Tableview:Soft keyboard launch revokes focus from rows (containing textfield)", "creator": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Environment used for verification -\r\nTitanium SDK: 2.1.2.v20120816171609\r\nTitanium  Studio: 2.1.2.201208192014\r\nDevice - Samsung GALAXY Note Android 2.3.6, Samsung Galaxy Nexus Android 4.0.2,Motorola Milestone Android 2.2.1\r\nMachine OS - MAC 10.8", "comment": { "comments": [ { "id": "239766", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem is still existing in version 3.0.2 and 3.1.0.\r\nOther observations:\r\nIn the first click ,the soft keyboard appears and disappears in a moment, but in the future clicks the soft keyboard won't disappear. \r\nIn the first click the text field losses its focus, but in the second click it will gain focus. Also there is another issue that ,we will able to input only one character when the text field get focused. After entering a character the focus will be lost. So we have to tap again to get the focus. ", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-26T06:59:19.000+0000", "updated": "2013-02-26T07:01:52.000+0000" }, { "id": "257856", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "body": "This sample code reproduces the issue as well:\n\n{code}\nvar win = Ti.UI.createWindow({\n\tbackgroundColor: \"black\"\n});\nvar tbl = Ti.UI.createTableView();\n\nvar row = Ti.UI.createTableViewRow();\n\nvar txt = Ti.UI.createTextField({\n\twidth: \"100dp\"\n});\nrow.add(txt);\n\ntbl.setData([row]);\n\nwin.add(tbl);\nwin.open();\n{code}", "updateAuthor": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-06-14T09:20:42.000+0000", "updated": "2013-06-14T09:20:42.000+0000" }, { "id": "257945", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is not a Titanium bug. It's the Android native behavior. When the textfield is clicked, it gains the focus so the softkeyboard shows and the table view needs to re-layout. After re-layout, everything is re-drawn and the textfield loses the focus. Similar discussion is [here|http://stackoverflow.com/questions/5615436/when-the-soft-keyboard-appears-it-makes-my-edittext-field-lose-focus].\nIf we want to edit the textfield in the tableview, we need to set \"windowSoftInputMode: Ti.UI.Android.SOFT_INPUT_ADJUST_PAN\" when creating the window. An example is attached at the end. Resolve the ticket as Invalid.\n{code}\nvar win = Ti.UI.createWindow({\n backgroundColor: \"black\",\n windowSoftInputMode : Ti.UI.Android.SOFT_INPUT_ADJUST_PAN\n});\nvar tbl = Ti.UI.createTableView();\n \nvar row = Ti.UI.createTableViewRow();\n \nvar txt = Ti.UI.createTextField({\n width: \"100dp\"\n});\nrow.add(txt);\n \ntbl.setData([row]);\n \nwin.add(tbl);\nwin.open();\n{code}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-14T18:46:24.000+0000", "updated": "2013-06-14T18:46:24.000+0000" }, { "id": "416300", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-29T22:39:14.000+0000", "updated": "2017-03-29T22:39:14.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }