{ "id": "121442", "key": "TIMOB-15546", "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": "15703", "description": "2013 Sprint 22", "name": "2013 Sprint 22", "archived": true, "released": true, "releaseDate": "2013-11-01" }, { "id": "15704", "description": "2013 Sprint 22 API", "name": "2013 Sprint 22 API", "archived": true, "released": true, "releaseDate": "2013-11-01" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-10-29T20:57:20.000+0000", "created": "2013-10-21T18:21:09.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_listview", "qe-3.2.0", "qe-testadded", "triage" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "32699", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "121291", "key": "TIMOB-15506", "fields": { "summary": "Android: ListView textfield inside headerView types backwards", "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 } } } }, { "id": "32738", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "121513", "key": "TIMOB-15559", "fields": { "summary": "Android: textField in listView cannot be focused on Android 4.3", "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": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-04-22T07:56:39.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": "h5. Problem Description\r\nIf a textField is set in a listView headerView property, it loses focus when clicked\r\n\r\nh5. Steps to reproduce\r\nSample code: \r\n\r\n{code}\r\nvar sections = [];\r\n \r\nvar fruitSection = Ti.UI.createListSection({ headerTitle: 'Fruits'});\r\nvar fruitDataSet = [\r\n {properties: { title: 'Apple', searchableText:' Fruits Apple', itemId:'0 0'}},\r\n {properties: { title: 'Banana', searchableText:'Fruits Banana', itemId:'0 1'}}\r\n];\r\nfruitSection.setItems(fruitDataSet);\r\nsections.push(fruitSection);\r\n\r\nvar tf = Ti.UI.createTextField({\r\n color: '#336699',\r\n height: 100,\r\n top:10,\r\n bottom:10,\r\n left:10,\r\n right:10,\r\n font:{fontSize:20,fontWeight:'bold'},\r\n hintText: 'Search'\r\n });\r\n\r\n// tf.addEventListener('change',function(e){\r\n// listView.searchText = e.value;\r\n// });\r\n\r\n\r\nvar listView = Ti.UI.createListView({\r\n\ttop: 20,\r\n\theaderView: tf\r\n});\r\nlistView.sections = sections;\r\n\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'black'\r\n});\r\n\r\nwin.add(listView);\r\n\r\nwin.open();\r\n{code}\r\n\r\n1. Run the sample code on device\r\n2. Click on the textField \r\nResult: keyboard is shown but then focus is immediately lost, so is actually not possible to type in.\r\n\r\nWorks as expected on iOS.\r\nUsing 3.1.3.GA the textField is not displayed at all. ", "attachment": [], "flagged": false, "summary": "Android: TextField set in a listView headerView property loses focus once clicked", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.2.0.v20131018154951\r\nCLI 3.2.0\r\nTitanium Studio 3.2.0.201310181940\r\nAndroid Google Nexus Galaxy", "comment": { "comments": [ { "id": "276053", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "In order to use any textfields inside listview, whether in headerView or row, you need to set 'windowSoftInputMode:Ti.UI.Android.SOFT_INPUT_ADJUST_PAN' to the window.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-21T23:24:22.000+0000", "updated": "2013-10-21T23:24:22.000+0000" }, { "id": "276059", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Looks like there's no documentation regarding this. I'll update the doc.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-21T23:34:30.000+0000", "updated": "2013-10-21T23:34:30.000+0000" }, { "id": "276066", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/4819", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-22T00:01:53.000+0000", "updated": "2013-10-22T00:01:53.000+0000" }, { "id": "276199", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-22T19:05:03.000+0000", "updated": "2013-10-22T19:05:03.000+0000" }, { "id": "277593", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested using the given code with Federico's advice and currently works on:\nMac OSX 10.9 Mavericks\nTitanium Studio, build: 3.2.0.201310310121\nTitanium SDK, build: 3.2.0.v20131031141643\nCLI: 3.2.0\nAlloy: 1.2.2\n\n+Devices+\nAndroid Emulators: 2.3.3, 4.0, 4.1.2 and 4.3\nAndroid Device: Samsung Galaxy Nexus running 4.1.1\n\nKeyboard appears on screen and text field remains focused.\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-01T00:10:09.000+0000", "updated": "2013-11-01T00:10:09.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }