{ "id": "101463", "key": "TIMOB-11022", "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": [], "resolution": null, "resolutiondate": null, "created": "2012-09-18T20:44:44.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android" ], "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": [], "assignee": null, "updated": "2018-02-28T20:03:41.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "A table with some rows, each row has its own title, if the row contain no any additional view, the title will show correctly, but if an image or label or any view added to the row, the row title will disappear.\r\n\r\nthis problem only happen on android, IOS is fine\r\n\r\n*here is the test code*\r\n\r\n{quote}\r\n{code:javascript}\r\nvar win1=Titanium.UI.createWindow({\r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar tableView=Titanium.UI.createTableView();\r\n\r\nif(Ti.Platform.osname==='iphone')\r\n tableView.style=Ti.UI.iPhone.TableViewStyle.GROUPED;\r\n\r\nvar tvs=[];\r\n\r\ntvs[0]=Ti.UI.createTableViewSection({\r\n headerTitle:'TVS1'\r\n});\r\n\r\ntvs[1]=Ti.UI.createTableViewSection({\r\n headerTitle:'TVS2'\r\n});\r\n\r\nfor( i=0;i<2;i++) {\r\n for( j=0;j<3;j++) {\r\n var imgSw=Ti.UI.createImageView({\r\n right:2,\r\n height:48,\r\n width:48,\r\n image:'/KS_nav_ui.png'\r\n });\r\n var row=Ti.UI.createTableViewRow({\r\n height:48,\r\n title:\"Row \"+j,\r\n className:'row'\r\n });\r\n row.add(imgSw);//remark this and you will see the row title back \r\n tvs[i].add(row);\r\n }\r\n}\r\ntableView.setData(tvs);\r\nwin1.add(tableView);\r\nwin1.open(); \r\n\r\n{code}\r\n{quote}", "attachment": [], "flagged": false, "summary": "Android: Table row title disappears if a view is added to the table row.", "creator": { "name": "jt", "key": "jt", "displayName": "JackieTai", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jt", "key": "jt", "displayName": "JackieTai", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "OS: win7 \r\nIDE: Titanium Studio, build: 2.1.2.201208301612\r\nTi API: 2.1.2\r\nMID: Android 2.3.3", "comment": { "comments": [ { "id": "220086", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I think that row can either have \"title\" or contain other elements. Those two functionalities can't be mixed. If there is a need to have title in the row that contains other elements, label can be created and added to the row.", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2012-09-21T02:40:32.000+0000", "updated": "2012-09-21T02:40:32.000+0000" }, { "id": "220265", "author": { "name": "jt", "key": "jt", "displayName": "JackieTai", "active": true, "timeZone": "America/Los_Angeles" }, "body": "No No No, Mr Skugor, the very same row with same title and other elements is shown in iphone(IOS), they can be coexist, the reason that I use row title is due to another problem, which is when you add a label to a row, if the user click on the label(the text) instead of the row empty space, the row event will not fire, I know this can be resolve by adding the label event(so now I've duplicated event to maintain, anyway as long as it work), the thing is when you click on the row empty space, the row has a visual effect(a flash on the background)), but if you click on the label there will be no such effect, but if you use row title instead of label, no matter where you click, the row event and visual effect always fire, well it is not a big deal, but it make a big different on user experience. \r\n\r\nI like to point out, in iphone even when you add a label and you click on the label text, the visual effect is always fire.", "updateAuthor": { "name": "jt", "key": "jt", "displayName": "JackieTai", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-22T10:02:31.000+0000", "updated": "2012-09-22T10:15:10.000+0000" }, { "id": "239602", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The issue can be reproduced in titanium sdk version 3.0.2 as well as in 3.1.0 .", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-25T05:15:02.000+0000", "updated": "2013-02-25T05:15:02.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }