{ "id": "111569", "key": "TIMOB-13173", "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": "15397", "description": "2013 Soprint 07 API", "name": "2013 Sprint 07 API", "archived": true, "released": true, "releaseDate": "2013-04-08" }, { "id": "15105", "description": "2013 Sprint 07", "name": "2013 Sprint 07", "archived": true, "released": true, "releaseDate": "2013-04-08" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-03-25T23:38:11.000+0000", "created": "2013-03-23T10:43:01.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-sdk3.1.0", "regression" ], "versions": [ { "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" }, "inwardIssue": { "id": "99597", "key": "TIMOB-10548", "fields": { "summary": "Android:Tableview:Soft keyboard launch revokes focus from rows (containing 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": "Medium", "id": "3" }, "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": "2013-11-07T17:56:02.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 regression. The issue does not exist on 3.0.2. But the textfield in tableviewrow is never editable on any build.\r\n\r\nSteps to Reproduce:\r\n1. Create an application with code below and launch the application\r\n2. Click on any row in the tableview\r\n\r\nActual: Softkeyboard appears but disappears immediately.\r\nExpected: Softkeyboard should not disappear immediately. It should disappear when click return on the keyboard.\r\n\r\n{code}\r\nvar _window = Ti.UI.createWindow();\r\n_window.fullscreen = false;\r\n        _window.backgroundColor = 'white';\r\n         \r\n        var tableView = Ti.UI.createTableView({\r\n            top : '0dp',\r\n            bottom : '0dp',\r\n            left : '0dp',\r\n            right : '0dp'\r\n        });\r\n         \r\n        var numRows = 15;\r\n        var rows = [];\r\n        for (var i = 0; i < numRows; i++){\r\n            var tableViewRow = Ti.UI.createTableViewRow({\r\n                height : 'auto'\r\n            });\r\n             \r\n            var textField = Ti.UI.createTextField({\r\n                top:'0dp',\r\n                left : '5dp',\r\n                right : '5dp',\r\n                borderColor : '#CCCCCC',\r\n                borderStyle : Ti.UI.INPUT_BORDERSTYLE_BEZEL\r\n            });\r\n             \r\n            tableViewRow.add(textField);\r\n             \r\n            rows.push(tableViewRow);\r\n        }\r\n        tableView.data = rows;\r\n        _window.add(tableView);\r\n        _window.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: TableView: Softkeyboard appears on clicking any tableviewrow but immediately disappear", "creator": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 3.1.0.v20130322171500\r\nStudio:3.0.2.201302191606\r\nDevice: Galaxy Nexus(v 4.0.4), Nexus 7 (V4.1)\r\nMac OS - 10.8\r\nCLI - 3.0.25-alpha", "comment": { "comments": [ { "id": "244033", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is not a regression bug. This behavior change is due to the [PR#3515|https://github.com/appcelerator/titanium_mobile/pull/3515] which fixed TIMOB-6367. 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 so the softkeyboard hides.\r\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. This is a native android behavior. Similar discussion is [here|http://stackoverflow.com/questions/5615436/when-the-soft-keyboard-appears-it-makes-my-edittext-field-lose-focus].\r\n{code}\r\nvar _window = Ti.UI.createWindow({\r\n\twindowSoftInputMode : Ti.UI.Android.SOFT_INPUT_ADJUST_PAN\r\n});\r\n_window.fullscreen = false;\r\n_window.backgroundColor = 'white';\r\n\r\nvar tableView = Ti.UI.createTableView({\r\n\ttop : '0dp',\r\n\tbottom : '0dp',\r\n\tleft : '0dp',\r\n\tright : '0dp'\r\n});\r\n\r\nvar numRows = 15;\r\nvar rows = [];\r\nfor (var i = 0; i < numRows; i++) {\r\n\tvar tableViewRow = Ti.UI.createTableViewRow({\r\n\t\theight : 'auto'\r\n\t});\r\n\r\n\tvar textField = Ti.UI.createTextField({\r\n\t\ttop : '0dp',\r\n\t\tleft : '5dp',\r\n\t\tright : '5dp',\r\n\t\tborderColor : '#CCCCCC',\r\n\t\tsoftKeyboardOnFocus : Titanium.UI.Android.SOFT_KEYBOARD_SHOW_ON_FOCUS,\r\n\t\tborderStyle : Ti.UI.INPUT_BORDERSTYLE_BEZEL\r\n\t});\r\n\r\n\ttableViewRow.add(textField);\r\n\r\n\trows.push(tableViewRow);\r\n}\r\ntableView.data = rows;\r\n_window.add(tableView);\r\n_window.open(); \r\n{code}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-25T23:27:53.000+0000", "updated": "2013-03-26T00:08:34.000+0000" }, { "id": "244080", "author": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "body": "As per the comment, this is invalid issue. Hence closing this issue.", "updateAuthor": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-26T07:17:03.000+0000", "updated": "2013-03-26T07:17:03.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }