{ "id": "106445", "key": "TIMOB-13427", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "15715", "description": "2013 Sprint 25", "name": "2013 Sprint 25", "archived": true, "released": true, "releaseDate": "2013-12-13" }, { "id": "15716", "description": "2013 Sprint 25 API", "name": "2013 Sprint 25 API", "archived": true, "released": true, "releaseDate": "2013-12-13" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": null, "resolutiondate": null, "created": "2012-12-13T00:09:56.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_tabgroup", "qe-testadded", "triage" ], "versions": [ { "id": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" }, { "id": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "issuelinks": [ { "id": "34438", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "124894", "key": "TIMOB-16212", "fields": { "summary": "Android: ActionBar expose setDisplayShowHomeEnabled and setDisplayShowTitleEnabled", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2019-11-07T15:18:06.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "As Arthur Evans said:\r\n\r\n{quote}\r\nI think there are two competing schools of though here (at least):\r\n\r\n1) We should expose a title on the tab group.\r\n2) The action bar title should take the title of the current tab's window.\r\n\r\nI've spent some time reviewing the Android docs, and it's not clear to me which of these is preferable.\r\n{quote}\r\n\r\nIMHO, if the tab already has a title, it's quite pointless to repeat this title in the ActionBar. In my application I'm using tabs to split the content of a shopping list between the items and the values... one tab is called \"products\", the other is \"summary\", and the actionBar title would be the list's name. I've attached a screenshot as an example.\r\n\r\n*Bottom line*: Maybe the TabGroup could use the provided title property, and when it's not present, use the active tab title?", "attachment": [ { "id": "34127", "filename": "Seleção_125.png", "author": { "name": "igorsantos07", "key": "igorsantos07", "displayName": "Igor Santos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2012-12-13T00:09:56.000+0000", "size": 7344, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Expose TabGroup title properly when using the ActionBar", "creator": { "name": "igorsantos07", "key": "igorsantos07", "displayName": "Igor Santos", "active": true, "timeZone": "America/Sao_Paulo" }, "subtasks": [], "reporter": { "name": "igorsantos07", "key": "igorsantos07", "displayName": "Igor Santos", "active": true, "timeZone": "America/Sao_Paulo" }, "environment": "Android 4.2, TiSDK 3.0CI", "comment": { "comments": [ { "id": "248746", "author": { "name": "joucke@tres.nl", "key": "joucke@tres.nl", "displayName": "Joucke Hempenius", "active": true, "timeZone": "Europe/Berlin" }, "body": "Any news on this? Currently my tabgroup ActionBar titles are empty :/", "updateAuthor": { "name": "joucke@tres.nl", "key": "joucke@tres.nl", "displayName": "Joucke Hempenius", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-04-23T09:27:43.000+0000", "updated": "2013-04-23T09:27:43.000+0000" }, { "id": "278383", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Test case\n{code}\n var win1 = Ti.UI.createWindow({\n title: 'Win 1'\n});\n \nvar tab1 = Ti.UI.createTab({ \n title: 'PRODUCTS',\n \n});\n \nvar win2 = Ti.UI.createWindow({\n title: 'Win 2'\n});\n \nvar tab2 = Ti.UI.createTab({ \n title: 'List SUMMARY',\n window: win2\n});\n \nvar tabGroup = Ti.UI.createTabGroup({\n title: 'Group Test',\n \n});\n \ntabGroup.addTab(tab1);\ntabGroup.addTab(tab2);\n \ntabGroup.open();\n{code}", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-11-06T07:15:36.000+0000", "updated": "2013-11-06T07:15:36.000+0000" }, { "id": "278384", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "PR :- \nhttps://github.com/appcelerator/titanium_mobile/pull/4920", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-11-06T07:16:01.000+0000", "updated": "2013-11-06T07:16:01.000+0000" }, { "id": "282016", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Another test case for changing the tab group's title:\r\n{code}\r\nvar win1 = Ti.UI.createWindow({\r\n title: 'Win 1'\r\n});\r\n \r\nvar tab1 = Ti.UI.createTab({ \r\n title: 'PRODUCTS',\r\n \twindow: win1\r\n});\r\n \r\nvar win2 = Ti.UI.createWindow({\r\n title: 'Win 2'\r\n});\r\n \r\nvar tab2 = Ti.UI.createTab({ \r\n title: 'List SUMMARY',\r\n window: win2\r\n});\r\n \r\nvar tabGroup = Ti.UI.createTabGroup({\r\n title: 'Group Test',\r\n \r\n});\r\n\r\nvar b1 = Ti.UI.createButton({\r\n\ttop: 10,\r\n\ttitle: \"tabGroup.title = 'title changed'\"\r\n});\r\nb1.addEventListener(\"click\", function(){\r\n\ttabGroup.title = \"title changed\";\r\n\talert(\"tabGroup.title = \" + tabGroup.title);\r\n});\r\nwin1.add(b1);\r\n\r\nvar b2 = Ti.UI.createButton({\r\n\ttop: 110,\r\n\ttitle: \"tabGroup.setTitle('title reset')\"\r\n});\r\nb2.addEventListener(\"click\", function(){\r\n\ttabGroup.setTitle(\"title reset\");\r\n\talert(\"tabGroup.getTitle() = \" + tabGroup.getTitle());\r\n});\r\nwin1.add(b2);\r\n\r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\n \r\ntabGroup.open();\r\n{code}\r\n\r\nRun the above test case with \r\n{code}\r\n\r\n \r\n \r\n \r\n\r\n{code}\r\nand with\r\n{code}\r\n\r\n \r\n \r\n \r\n\r\n{code}\r\n", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-02T23:10:36.000+0000", "updated": "2013-12-02T23:15:59.000+0000" }, { "id": "452529", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "setTitle no longer changes the tab group title. With the test case below note that the second button does not change the tabGroup title. \r\n\r\n*Test Case:*\r\n\r\n{code:java}\r\nvar win1 = Ti.UI.createWindow({\r\n title: 'Win 1'\r\n});\r\n\r\nvar tab1 = Ti.UI.createTab({\r\n title: 'PRODUCTS',\r\n window: win1\r\n});\r\n\r\nvar win2 = Ti.UI.createWindow({\r\n title: 'Win 2'\r\n});\r\n\r\nvar tab2 = Ti.UI.createTab({\r\n title: 'List SUMMARY',\r\n window: win2\r\n});\r\n\r\nvar tabGroup = Ti.UI.createTabGroup({\r\n title: 'Group Test',\r\n\r\n});\r\n\r\nvar b1 = Ti.UI.createButton({\r\n top: 10,\r\n title: \"tabGroup.title = 'title changed'\"\r\n});\r\nb1.addEventListener(\"click\", function(){\r\n tabGroup.title = \"title changed\";\r\n alert(\"tabGroup.title = \" + tabGroup.title);\r\n});\r\nwin1.add(b1);\r\n\r\nvar b2 = Ti.UI.createButton({\r\n top: 110,\r\n title: \"tabGroup.setTitle('title reset')\"\r\n});\r\nb2.addEventListener(\"click\", function(){\r\n tabGroup.setTitle(\"title reset\");\r\n alert(\"tabGroup.getTitle() = \" + tabGroup.getTitle());\r\n});\r\nwin1.add(b2);\r\n\r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\n\r\ntabGroup.open();\r\n\r\n{code}\r\n\r\n*Test Environment*\r\n{code:java}\r\nMacOS Catalina 10.15.1 Beta\r\nNode.js 10.16.3\r\nGoogle Pixel Emulator7.1.1\r\n{\"NPM\":\"4.2.15-1\",\"CLI\":\"7.1.1\"}\r\nSDK 8.3.0.v20191030085531\r\nSDK 8.2.1.GA\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-07T15:17:42.000+0000", "updated": "2019-11-07T15:17:42.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }