{ "id": "172841", "key": "TIMOB-26713", "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-10T23:40:35.000+0000", "created": "2019-01-10T23:36:00.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "TabGroup", "android", "background", "color", "landscape" ], "versions": [], "issuelinks": [ { "id": "57106", "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": "57109", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "85337", "key": "TIMOB-7348", "fields": { "summary": "Android: Add support for tabsBackgroundColor and tabsBackgroundSelectedColor in 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": "Medium", "id": "3" }, "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:05:33.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": "*Summary:*\r\n{{TabGroup}} property \"tabsBackgroundColor\" will only apply the color to the top tab bar's background when the app is shown in \"portrait\" orientation. When \"landscape\", the color is ignored and will use the ActionBar's background color instead.\r\n\r\nNot that this is because the tab bar is moved inside of the ActionBar when landscape. The work-around is to set the ActionBar's \"primaryColor\" via an XML theme instead. Also, note that implementing tab bars via an ActionBar is considered deprecated as of Android 5.0 as well.\r\n\r\n*Steps to reproduce:*\r\n# Build and run the below code on Android.\r\n# Hold the device portrait.\r\n# Notice that the top tab bar's background color is red. (This is good.)\r\n# Rotate to landscape.\r\n# Notice top tab bar is dark gray. (This is the issue.)\r\n\r\n{code:javascript}\r\nfunction createTab(title) {\r\n\tvar window = Ti.UI.createWindow({ title: title });\r\n\twindow.add(Ti.UI.createLabel({ text: title + \" View\" }));\r\n\tvar tab = Ti.UI.createTab({\r\n\t\ttitle: title,\r\n\t\twindow: window,\r\n\t});\r\n\treturn tab;\r\n}\r\n\r\nvar tabGroup = Ti.UI.createTabGroup({\r\n\ttabs: [createTab(\"Tab 1\"), createTab(\"Tab 2\")],\r\n\ttabsBackgroundColor: \"red\",\r\n});\r\ntabGroup.open();\r\n{code}\r\n\r\n*Result:*\r\n !TabGroupPortrait-Good.png|thumbnail! !TabGroupLandscape-Bad.png|thumbnail! \r\n\r\n*Expected Result:*\r\n !TabGroupPortrait-Good.png|thumbnail! !TabGroupLandscape-Good.png|thumbnail! \r\n", "attachment": [ { "id": "66060", "filename": "TabGroupLandscape-Bad.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-10T23:35:25.000+0000", "size": 51548, "mimeType": "image/png" }, { "id": "66061", "filename": "TabGroupLandscape-Good.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-10T23:35:25.000+0000", "size": 49984, "mimeType": "image/png" }, { "id": "66062", "filename": "TabGroupPortrait-Good.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-10T23:35:25.000+0000", "size": 47607, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: TabGroup \"tabsBackgroundColor\" property ignored when landscape", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "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": "445196", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue was resolved in Titanium 8.0.0 by [TIMOB-26354].\r\n\r\nNote that the new {{TabGroup}} implementation no longer adds the top tab bar into the {{ActionBar}}. This is considered to be deprecated behavior on Google's end. Also note that Titanium's 8.0.0's new {{TabGroup}} implementation allows you to remove the top {{ActionBar}} which you can do via theme \"Theme.AppCompat.NoTitleBar\". This is the recommended thing to do.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-10T23:40:06.000+0000", "updated": "2019-01-10T23:40:06.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }