[TIMOB-25535] Android: Support DrawerLayout with Ti.UI.TabGroup
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Critical |
Status | Resolved |
Resolution | Won't Fix |
Resolution Date | 2018-09-09T21:23:29.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | android, drawerlayout, material-design, tabGroup, tabs |
Reporter | Guillermo Figueras |
Assignee | Unknown |
Created | 2017-11-19T17:33:41.000+0000 |
Updated | 2019-08-15T21:02:08.000+0000 |
Description
As far as I know, it is not possible to use tabs and a drawer menu simultaneously in Appcelerator Titanium. It would be great if those two elements could be combined.
Material guidelines: https://material.io/guidelines/patterns/navigation.html#navigation-combined-patterns (see "Combined patterns" section, the part where it says "Side nav and tab combinations", or just check the images I attached).
Attachments
File | Date | Size |
---|---|---|
patterns-navigation-patterncombinations7.png | 2017-11-19T17:33:28.000+0000 | 20371 |
patterns-navigation-patterncombinations8.png | 2017-11-19T17:33:28.000+0000 | 26408 |
Hello, Can you share some native docs on this?
I could not find any native docs, the only thing I found was the link from the Material guidelines that I posted. Anyways, official Google apps like Play Store work like this, using tabs and a navigation drawer menu at the same time: https://imgur.com/a/4Tg6F If you need some code, you can check this sample app I found on GitHub: https://github.com/lvaccaro/Android-Sliding-Tabs-And-Navigation-Drawer-With-Material-Design
Any news on this? Or at least someone has some kind of workaround to use the navigation drawer with tabs?
We don't plan on supporting this with a
TabGroup
since it has no root view to add aDrawerLayout
overlay view to. But that said, you can implement what you want via aScrollableView
instead with scrolling disabled. AScrollableView
is really just a paginated view just likeTabGroup
, but without the tabs. Titanium's native implementation between them is nearly the same on Android. So, it's perfect for this type of UI. Here's how to do it...@Joshua Quick thanks, I'll give it a try.
Do we have any progress or any workaround, we can update to the customer?
Resolving as "Won't Fix". In addition, SDK 7.5.0 will support a tabbed-bar for Android that behaves like a tab-group (in fact there will be two different styles: top and bottom tabs).
@hans I am very much looking forward to 7.5 and to seeing examples of the bottom aligned tabbed-bar behaving like a tab-group. So far I have been very iOS focussed, where the tab-group loads windows and is a very structured top-level nav item. I am really hoping to see example code for Ti 7.5 that make it easy to transition an iOS tab-group across to the bottom aligned tab-group on Android, if that is possible.
[~mdelmarter], keep an eye on ticket [TIMOB-26354]. That's the ticket where we'll be adding a new bottom bar layout style to
TabGroup
. Thanks for your feedback. :)