[TIMOB-26100] Windows: Add "Ti.UI.ButtonBar" support
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | Low |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Windows |
| Labels | Windows, buttonbar, parity |
| Reporter | Joshua Quick |
| Assignee | Kota Iguchi |
| Created | 2018-06-06T00:41:26.000+0000 |
| Updated | 2018-08-27T23:06:26.000+0000 |
Description
*Summary:*
Currently, Titanium's
ButtonBar is an iOS only feature. We should add support on Android for parity.
On iOS, a Titanium ButtonBar works just like a Titanium TabbedBar. Only one button/tab can be selected at a time. The only difference is the appearance. On iOS, a ButtonBar is implemented via UISegmentedControl.
*Possible Solutions:*
Implement it as a radio button group. This seems to be the most appropriate solution. And I think this would be the solution on Windows as well.
https://developer.android.com/guide/topics/ui/controls/radiobutton
Alternatively, implement it just like TabbedBar. Have the Android ButtonBar proxy derive from the TabbedBar proxy and have them use the same implementation. Ideally implemented via the Java TabLayout or BottomNavigationView.
No comments