{ "id": "128045", "key": "TIMOB-16679", "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": "16270", "description": "2014 Sprint 10", "name": "2014 Sprint 10", "archived": true, "released": true, "releaseDate": "2014-05-22" }, { "id": "16271", "description": "2014 Sprint 10 SDK", "name": "2014 Sprint 10 SDK", "archived": true, "released": true, "releaseDate": "2014-05-22" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-05-29T22:25:31.000+0000", "created": "2014-03-23T12:04:55.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "module_listview", "qe-closed-3.3.0", "qe-testadded" ], "versions": [ { "id": "15857", "description": "Release 3.2.2", "name": "Release 3.2.2", "archived": false, "released": true, "releaseDate": "2014-03-09" } ], "issuelinks": [ { "id": "37974", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "131044", "key": "TIMOB-17045", "fields": { "summary": "Android: Label 'html' and 'text' properties don't work together in ListView", "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": "2015-06-23T15:45:36.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": "ListView does not display the links after scrolling out of screen. Both autoLink and html (text) does not work.\r\n\r\nExample code below. For the example, the first time the app loads google.com link is clickable, upon scrolling out of screen and scrolling back google.com becomes no longer clickable.\r\n\r\n{code}\r\nvar self = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\nvar myTemplate = {\r\n childTemplates: [ // \r\n { // Title \r\n type: 'Ti.UI.Label', // Use a label for the title \r\n bindId: 'info', // Maps to a custom info property of the item data\r\n properties: { // Sets the label properties\r\n color: 'black',\r\n font: { fontFamily:'Arial', fontSize: '20dp', fontWeight:'bold' },\r\n left: '60dp', top: 0,\r\n autoLink: Ti.UI.AUTOLINK_ALL\r\n }\r\n },\r\n { // Subtitle\r\n type: 'Ti.UI.Label', // Use a label for the subtitle\r\n bindId: 'es_info', // Maps to a custom es_info property of the item data\r\n properties: { // Sets the label properties\r\n color: 'gray',\r\n font: { fontFamily:'Arial', fontSize: '14dp' },\r\n left: '60dp', top: '25dp',\r\n autoLink: Ti.UI.AUTOLINK_ALL\r\n }\r\n }\r\n ]\r\n};\r\n \r\nvar listView = Ti.UI.createListView({\r\n // Maps myTemplate dictionary to 'template' string\r\n templates: { 'template': myTemplate },\r\n // Use 'template', that is, the myTemplate dict created earlier\r\n // for all items as long as the template property is not defined for an item.\r\n defaultItemTemplate: 'template'\r\n});\r\nvar sections = [];\r\n \r\nvar fruitSection = Ti.UI.createListSection({ headerTitle: 'Fruits / Frutas'});\r\nvar fruitDataSet = [\r\n // the text property of info maps to the text property of the title label\r\n // the text property of es_info maps to text property of the subtitle label\r\n // the image property of pic maps to the image property of the image view\r\n { info: {html: \"Apple\"}, es_info: {text: 'Manzana'}},\r\n { info: {html: \"Banana\"}, es_info: {text: 'Banana'}}\r\n];\r\nfruitSection.setItems(fruitDataSet);\r\nsections.push(fruitSection);\r\n \r\nvar vegSection = Ti.UI.createListSection({ headerTitle: 'Vegetables / Verduras'});\r\nvar vegDataSet = [\r\n { info: {html: 'Carrot'}, es_info: {text: 'Zanahoria'}},\r\n { info: {html: 'Potato'}, es_info: {text: 'Patata'}}\r\n];\r\nvegSection.setItems(vegDataSet);\r\nsections.push(vegSection);\r\n \r\nvar grainSection = Ti.UI.createListSection({ headerTitle: 'Grains / Granos'});\r\nvar grainDataSet = [\r\n { info: {html: \"Corn\"}, es_info: {text: 'Maiz'}},\r\n { info: {html: \"Rice\"}, es_info: {text: 'Arroz'}},\r\n { info: {html: \"Wheat\"}, es_info: {text: 'Trigo'}},\r\n { info: {html: \"Corn\"}, es_info: {text: 'Maiz'}},\r\n { info: {html: \"Rice\"}, es_info: {text: 'Arroz'}},\r\n { info: {html: \"Wheat\"}, es_info: {text: 'Trigo'}},\r\n { info: {html: \"Corn\"}, es_info: {text: 'Maiz'}},\r\n { info: {html: \"Rice\"}, es_info: {text: 'Arroz'}},\r\n { info: {html: \"Wheat\"}, es_info: {text: 'Trigo'}},\r\n { info: {html: \"Corn\"}, es_info: {text: 'Maiz'}},\r\n { info: {html: \"Rice\"}, es_info: {text: 'Arroz'}},\r\n { info: {html: \"Wheat\"}, es_info: {text: 'Trigo'}},\r\n];\r\ngrainSection.setItems(grainDataSet);\r\nsections.push(grainSection);\r\n \r\nlistView.setSections(sections);\r\n \r\nself.add(listView);\r\nself.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Links do not work in ListView (e.g. autoLink)", "creator": { "name": "tanlihao", "key": "tanlihao", "displayName": "Tan Li Hao", "active": true, "timeZone": "Asia/Shanghai" }, "subtasks": [], "reporter": { "name": "tanlihao", "key": "tanlihao", "displayName": "Tan Li Hao", "active": true, "timeZone": "Asia/Shanghai" }, "environment": null, "closedSprints": [ { "id": 104, "state": "closed", "name": "2014 Sprint 10 SDK", "startDate": "2014-05-12T16:00:00.000Z", "endDate": "2014-05-24T00:00:00.000Z", "completeDate": "2014-05-27T18:11:47.424Z", "originBoardId": 114 }, { "id": 105, "state": "closed", "name": "2014 Sprint 11 SDK", "startDate": "2014-05-27T21:43:32.338Z", "endDate": "2014-06-07T00:00:00.000Z", "completeDate": "2014-06-09T21:36:37.587Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "298361", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can run your test case but I cannot test the link functionality because your test is missing the html and png files. Can you please provide the linked files so that we can reproduce the issue?", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-24T03:03:00.000+0000", "updated": "2014-03-24T03:03:00.000+0000" }, { "id": "298368", "author": { "name": "tanlihao", "key": "tanlihao", "displayName": "Tan Li Hao", "active": true, "timeZone": "Asia/Shanghai" }, "body": "Hi the example does not require html files (they are inlined). As for png files it is also unnecessary. I edited the example to remove it", "updateAuthor": { "name": "tanlihao", "key": "tanlihao", "displayName": "Tan Li Hao", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2014-03-24T04:28:46.000+0000", "updated": "2014-03-24T04:28:46.000+0000" }, { "id": "298369", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this to engineering as I can reproduce this issue on Android Galaxy Nexus device.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-24T05:09:00.000+0000", "updated": "2014-03-24T05:09:00.000+0000" }, { "id": "299258", "author": { "name": "tanlihao", "key": "tanlihao", "displayName": "Tan Li Hao", "active": true, "timeZone": "Asia/Shanghai" }, "body": "Is there any updates?", "updateAuthor": { "name": "tanlihao", "key": "tanlihao", "displayName": "Tan Li Hao", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2014-03-29T10:52:26.000+0000", "updated": "2014-03-29T10:52:26.000+0000" }, { "id": "302847", "author": { "name": "jeffatstepup", "key": "jeffatstepup", "displayName": "Jeff Antram", "active": true, "timeZone": "Europe/London" }, "body": "In my app, mailto: and tel: links work, but http:// and https:// do not.\r\n\r\nEDIT - this is not the case - links of all kinds work as expected intermittently.", "updateAuthor": { "name": "jeffatstepup", "key": "jeffatstepup", "displayName": "Jeff Antram", "active": true, "timeZone": "Europe/London" }, "created": "2014-04-29T07:47:38.000+0000", "updated": "2014-04-29T12:34:20.000+0000" }, { "id": "304736", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/5678", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-14T00:57:01.000+0000", "updated": "2014-05-14T00:57:01.000+0000" }, { "id": "304829", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Additional Test Case\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'white',\r\n});\r\n\r\nvar sV = Ti.UI.createScrollView({\r\n\tlayout:'vertical',\r\n\tscrollType:'vertical'\r\n});\r\n \r\nvar html = '
Conatct Info
Email Me
Call
webpage
AUTOLINK UNDEFINED
AUTOLINK EMAIL
AUTOLINK PHONE
AUTOLINK URL
AUTOLINK ALL
AUTOLINK NONE