On iOS, TabGroup unofficially supports an add() method which allows you to add views which overlay on top of the entire tab group. We'd like to do the same on Android.
Use-Case 1: DrawerLayoutin TabGroup
On Android, there is currently no means of adding a DrawerLayout to a TabGroup. This is a feature that many app developers want.
Use-Case 2: DrawerLayout without Tabs
A common Android user-interface is to use a DrawerLayout to select tabs/views. For example, Google's gmail app displays different views by tapping on buttons/links in the drawer. The below code hides a TabGroup's tabs so that a DrawerLayout can select tabs instead.
Use-Case 3: Overlay translucent view on top of TabGroup
Another use-case is to overlay a translucent view which can be used to display instructions to the end-user. This currently works on iOS today.
- void add(TiUIView)
- void insertAt(TiUIView, int)
- void remove(TiUIView)