{ "id": "174975", "key": "TIMOB-27880", "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": [], "resolution": null, "resolutiondate": null, "created": "2020-05-03T13:25:33.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "TabGroup", "android", "tab" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-02-22T18:42:27.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": "Currently it is only possible to hide/show the BottomNavigationBar. It is not possible to animate it. \r\n\r\n{code}\r\nvar win1 = Ti.UI.createWindow({backgroundColor: '#fff'});\r\nwin1.add(Ti.UI.createLabel({touchEnabled:false, text: 'Click to hide - animated'}));\r\n\r\nvar isOpen = true;\r\n\r\nwin1.addEventListener(\"click\",function(){\r\n\tisOpen = !isOpen;\r\n\ttabGroup.disableTabNavigation(!isOpen, true); // animate navbar\r\n})\r\n\r\nvar win2 = Ti.UI.createWindow({backgroundColor: '#fff'});\r\nwin2.add(Ti.UI.createLabel({touchEnabled:false,text: 'Click to hide'}));\r\nwin2.addEventListener(\"click\",function(){\r\n\tisOpen = !isOpen;\r\n\ttabGroup.disableTabNavigation(!isOpen); // old behavior\r\n})\r\nvar tab1 = Ti.UI.createTab({\r\n window: win1,\r\n title: 'Blue'\r\n}),\r\ntab2 = Ti.UI.createTab({\r\n window: win2,\r\n title: 'Red'\r\n}),\r\ntabGroup = Ti.UI.createTabGroup({\r\n\tstyle: Ti.UI.Android.TABS_STYLE_BOTTOM_NAVIGATION,\r\n tabs: [tab1, tab2]\r\n});\r\ntabGroup.open();\r\n{code}\r\n\r\nA second optional parameter is used to animate it\r\n\r\n !ezgif-3-c99e7f591a6d.gif! ", "attachment": [ { "id": "67354", "filename": "ezgif-3-c99e7f591a6d.gif", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-05-03T13:25:06.000+0000", "size": 402114, "mimeType": "image/gif" } ], "flagged": false, "summary": "Android: Add animate parameter for disableTabNavigation", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 1195, "state": "closed", "name": "2020 Sprint 10", "startDate": "2020-05-08T16:37:58.282Z", "endDate": "2020-05-22T16:37:00.000Z", "completeDate": "2020-05-21T15:26:11.089Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "455334", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/11681", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-05-03T13:25:51.000+0000", "updated": "2020-05-03T13:25:51.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }