{ "id": "171493", "key": "TIMOB-25954", "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": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-02-26T17:51:26.000+0000", "created": "2018-04-10T19:42:04.000+0000", "epic": { "id": 175923, "key": "TIMOB-28298", "name": "Android: Material widget support", "summary": "Android: Material widget support", "color": { "key": "color_1" }, "done": false }, "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "buttonbar", "parity" ], "versions": [], "issuelinks": [ { "id": "56576", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "171746", "key": "TIMOB-26100", "fields": { "summary": "Windows: Add \"Ti.UI.ButtonBar\" support", "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" } }, "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": "56450", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "171492", "key": "TIMOB-25953", "fields": { "summary": "Android: Add \"Ti.UI.TabbedBar\" support", "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": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-02-26T17:51:26.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\nCurrently, Titanium's {{ButtonBar}} is an iOS only feature. We should add support on Android for parity.\r\n\r\nOn iOS, this feature is implemented via the {{UISegmentedControl}} whose \"momentary\" style is set to {{true}}. This means the {{UISegmentedControl}} doesn't maintain a check/selection state and acts like buttons.\r\n\r\nOn Android, we can implement this using the material design {{MaterialButtonToggleGroup}} with outlined buttons that have their toggle/checkable state disabled.\r\n\r\n*Example:*\r\n !ButtonBar-Android.png|thumbnail! \r\n\r\n*Note:*\r\nThe {{ButtonBar}} \"style\" property has been deprecated on iOS since Titanium 3.4.2 and will log a warning when you attempt to set it. iOS currently ignores this property. We can re-purpose this property to implement the 3 different button styles documented by Google's material theme: \"Text Button\", \"Outlined Button\", and \"Contained Button\".\r\nhttps://material.io/design/components/buttons.html\r\n", "attachment": [ { "id": "67796", "filename": "ButtonBar-Android.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-02-19T05:45:27.000+0000", "size": 55402, "mimeType": "image/png" }, { "id": "67769", "filename": "ButtonBarTest.js", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-01-16T07:01:09.000+0000", "size": 1359, "mimeType": "application/x-javascript" }, { "id": "65485", "filename": "TIMOB-25954.png", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-08-28T06:18:09.000+0000", "size": 5987, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Add \"Ti.UI.ButtonBar\" support", "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": 1039, "state": "closed", "name": "2018 Sprint 12 SDK", "startDate": "2018-06-03T15:22:23.401Z", "endDate": "2018-06-17T15:22:00.000Z", "completeDate": "2018-06-18T20:45:36.363Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "441129", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~jquick] Thanks for the update. I tried ButtonBar on iOS and found out that the {{index}} property _does change_ button appearance as selected state (see screenshot) but tapping button does not. This is a bit unexpected behavior for me but this is how {{Ti.UI.ButtonBar}} works...\r\n\r\n !TIMOB-25954.png|thumbnail! \r\n\r\nCode:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n \r\nvar bb1 = Titanium.UI.createButtonBar({\r\n labels:['One', 'Two', 'Three'],\r\n backgroundColor:'#336699',\r\n top:50,\r\n style:Titanium.UI.iOS.SystemButtonStyle.PLAIN,\r\n height:25,\r\n width:200,\r\n index: 1 // This does update button selectioin appearance\r\n});\r\n\r\nbb1.addEventListener('click', function(e) {\r\n bb1.index = e.index; // This does not update button selection appearance...\r\n});\r\n\r\nwin.add(bb1);\r\nwin.open();\r\n{code}\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-08-28T06:18:21.000+0000", "updated": "2018-08-28T06:18:34.000+0000" }, { "id": "441162", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm going to write that up as a bug on iOS. I don't think setting the index like that should show a selected state.\r\nThanks for trying it out.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-28T17:28:42.000+0000", "updated": "2018-08-28T17:28:42.000+0000" }, { "id": "458020", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/12389", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-01-16T07:16:01.000+0000", "updated": "2021-01-16T07:16:01.000+0000" }, { "id": "458310", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nWaiting for Jenkins build.", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-02-25T19:25:33.000+0000", "updated": "2021-02-25T19:25:33.000+0000" }, { "id": "458312", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master, backport for 10_0_X merged for 10.0.0 target.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-02-26T17:31:30.000+0000", "updated": "2021-02-26T17:51:23.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }