{ "id": "151884", "key": "TIMOB-19695", "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": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-01-11T01:31:34.000+0000", "created": "2015-10-09T09:22:42.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ActionBar", "TabGroup", "android", "tabs", "theme", "titlebar" ], "versions": [], "issuelinks": [ { "id": "56905", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "159804", "key": "TIMOB-23271", "fields": { "summary": "Android: ActionBar not available for TabGroup", "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": "57110", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "159804", "key": "TIMOB-23271", "fields": { "summary": "Android: ActionBar not available for TabGroup", "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": "56875", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "172171", "key": "TIMOB-26354", "fields": { "summary": "Android: Refactor TabGroup and introduce new style", "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": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "57111", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "172171", "key": "TIMOB-26354", "fields": { "summary": "Android: Refactor TabGroup and introduce new style", "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": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updated": "2019-01-11T01:31:41.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": "When you use a {{NoTitleBar}} theme for the application, it is impossible to use a TabGroup anywhere in the application, because it requires an ActionBar:\r\n\r\n1. Create default classic project (which has a TabGroup)\r\n2. In {{tiapp.xml}} select a NoTitleBar theme:\r\n\r\n{code}\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n{code}\r\n\r\n3. Run the project and see that the screen is empty (as in screenshot) and logs show:\r\n\r\n{code}\r\n[ERROR] TabGroupProxy: (main) [362,362] ActionBar not available for TabGroup\r\n{code}\r\n\r\nh2. Solution\r\n\r\nWe should support the {{theme}} property we have for [Ti.UI.Window|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Window-property-theme] so you can select a theme that *has* a TitleBar when you create a TabGroup in an application that uses a {{NoTitleBar}} theme.\r\n\r\nh2. Workaround\r\n\r\nOn all other windows, use the {{theme}} property to select a {{NoTitleBar}} theme.", "attachment": [ { "id": "56949", "filename": "android_20151009-111248.png", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-10-09T09:22:36.000+0000", "size": 26617, "mimeType": "image/png" }, { "id": "56948", "filename": "android_20151009-111406.png", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-10-09T09:22:37.000+0000", "size": 46600, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: TabGroup cannot use \"NoTitleBar\" themes", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": null, "closedSprints": [ { "id": 1106, "state": "closed", "name": "2019 Sprint 1", "startDate": "2018-12-31T19:39:58.070Z", "endDate": "2019-01-11T19:39:00.000Z", "completeDate": "2019-01-14T17:17:47.552Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "366517", "author": { "name": "m.afzal.786.220", "key": "m.afzal.786.220", "displayName": "Muhammad Afzal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "\r\n\r\n\r\n$.tabGroup.addEventListener('focus', function(e) {\r\n\tvar actionBar = $.tabGroup.getActivity().actionBar; \r\n\tif (actionBar) {\r\n\t\t\r\n\t\tactionBar.setDisplayShowTitleEnabled(false);// works\r\n\t\r\n\t}\r\n});\r\n\r\n\r\n ", "updateAuthor": { "name": "m.afzal.786.220", "key": "m.afzal.786.220", "displayName": "Muhammad Afzal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-12T16:50:34.000+0000", "updated": "2015-10-12T16:50:34.000+0000" }, { "id": "366532", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~m.afzal.786.220] that's to hide the action bar, the ticket is about setting a specific theme, like you can do when you create a window.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-10-12T17:36:09.000+0000", "updated": "2015-10-12T17:36:09.000+0000" }, { "id": "366942", "author": { "name": "p.saamy@gmail.com", "key": "p.saamy@gmail.com", "displayName": "saamy", "active": true, "timeZone": "America/Havana" }, "body": "I have same issue. \r\n\r\nIf we are developing new Application then we can consider this solution/workaround.But when we are upgrading (Ti SDK) our existing app then we need to do these changes in many file, This is increasing both developing and testing effort. \r\n\r\nHope this issue will be resolved soon. ", "updateAuthor": { "name": "p.saamy@gmail.com", "key": "p.saamy@gmail.com", "displayName": "saamy", "active": true, "timeZone": "America/Havana" }, "created": "2015-10-15T15:48:49.000+0000", "updated": "2015-10-15T15:49:21.000+0000" }, { "id": "445200", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{{TabGroup}} was refactored in Titanium 8.0.0 so that tabs are no longer implemented via the {{ActionBar}}. This means that the {{ActionBar}} can now be removed via a theme (such as \"Theme.AppCompat.NoTitleBar\") without issue.\r\n\r\nSee ticket [TIMOB-26354] for more details.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-11T01:31:11.000+0000", "updated": "2019-01-11T01:31:11.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }