Tab group and tabs
A tab group is a container for a group of tabs. It is displayed at the top of the screen on Android and the bottom on iOS, and allows the user to move between different screens on your app.
Tab groups are very well integrated and well suited to iOS apps and in particular iPhone apps, where they are commonly found on lots of apps; but it doesn't always look good on Android. As is shown in the next image, a tab group on a low resolution Android device takes up a lot of valuable screen estate. Think carefully about how your app will look on Android before committing to creating your app with it.
Note
Tab groups may be on the way out in Android. Titanium 3.0 now creates Android action bars instead of tab groups if you set the Android SDK to higher than 11 in tiapp.xml
. See http://developer.appcelerator.com/blog/2012/12/breaking-changes-in-titanium-sdk-3-0.html.
Creating a tab group
Tab groups are created by calling Titanium.UI.createTabGroup()
. Tabs are added to tab groups. A...