{ "id": "173483", "key": "TIMOB-26990", "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": "2019-04-19T11:10:07.000+0000", "priority": null, "labels": [ "android", "tabgroup" ], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-04-22T22:46:49.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": [], "description": "Adding the possibility to change the tabMode of a TabGroup. Currently it will default to a fixed mode (showing all tabs but cutting of labels to do so). \r\n\r\nThe PR will add a scrollable tabMode (https://developer.android.com/reference/android/support/design/widget/TabLayout#mode_scrollable)\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\r\n});\r\nvar btn1 = Ti.UI.createButton({\r\n\ttitle: \"fixed\",\r\n\ttop: 5\r\n});\r\nvar btn2 = Ti.UI.createButton({\r\n\ttitle: \"scrollable\",\r\n\ttop: 60\r\n});\r\nwin.add([btn1, btn2]);\r\nbtn1.addEventListener(\"click\", function() {\r\n\topenTabGroup(Ti.UI.Android.TAB_MODE_FIXED);\r\n})\r\nbtn2.addEventListener(\"click\", function() {\r\n\topenTabGroup(Ti.UI.Android.TAB_MODE_SCROLLABLE);\r\n})\r\nwin.open();\r\n\r\nfunction openTabGroup(tabModeValue) {\r\n\r\n\tvar tabs = [];\r\n\r\n\tfor (var i = 0; i < 10; ++i) {\r\n\t\tvar w = Ti.UI.createWindow({});\r\n\t\tvar t = Ti.UI.createTab({\r\n\t\t\twindow: w,\r\n\t\t\ttitle: 'win'\r\n\t\t});\r\n\t\ttabs.push(t);\r\n\t}\r\n\r\n\ttabGroup = Ti.UI.createTabGroup({\r\n\t\ttabs: tabs,\r\n\t\ttabMode: tabModeValue\r\n\t});\r\n\ttabGroup.open();\r\n}\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: Add tabMode (fixed, scrollabl) to TabGroup", "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, "comment": { "comments": [ { "id": "447771", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/10856", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-04-19T11:11:53.000+0000", "updated": "2019-04-19T11:11:53.000+0000" }, { "id": "447850", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~michael], Thanks for the PR. I will forward this to the engineering for marge. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-04-22T22:45:12.000+0000", "updated": "2019-04-22T22:45:12.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }