Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7302] Android: Titanium.UI.TabGroup: TabGroup with too many tabs difficult to navigate due to scaling

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionWon't Fix
Resolution Date2013-05-20T18:52:20.000+0000
Affected Version/sRelease 1.8.0.1, Release 2.0.0, Release 3.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsparity, qe-and011912, triage
ReporterDustin Hyde
AssigneeIngo Muschenetz
Created2012-01-19T14:01:36.000+0000
Updated2013-05-20T18:54:18.000+0000

Description

TabGroup with too many tabs difficult to navigate due to scaling. iOS resolves this issue by enforcing a minimum tab size, and replacing any invisible tabs with a tableview that can be accessed by a new tab located at the right edge of the screen. Comparison Screenshots Attached. Steps to Reproduce: 1. Run Code.
var tabGroup = Ti.UI.createTabGroup();

for(var i = 0; i < 50; i++)
{
	var tab = Ti.UI.createTab({
		window:Ti.UI.createWindow(),
		title:'Row ' + i
		});
	
	tabGroup.addTab(tab);
}

tabGroup.open();
Expected Result: Tabs should be visible and useable. Actual Result: Tabs are scaled smaller as the number of tabs increases, rendering them difficult to use.

Attachments

FileDateSize
android tabgroup overflow.png2012-01-19T14:01:36.000+000021643
ios tabgroup overflow.png2012-01-19T14:01:36.000+00009865

Comments

  1. Marshall Culpepper 2012-03-20

    According to this, we might be able to wrap the Tabs into a horizontal scroll view: http://java.dzone.com/articles/scrolling-tabs-android
  2. Shameer Jan 2013-03-05

    The problem reproduce with release 3.0.2 and master release 3.1.0 tested on Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 Device: Samsung galaxy s duos Android version: 4.0.4 Android Emulator: Android SDK version: 2.2
  3. Shannon Hicks 2013-04-09

    I think we can close this ticket as WONTFIX based on the new ActionBar functionality. Let's be realistic, we're not going to fix this for Android 2.x at this point in time.
  4. Ingo Muschenetz 2013-05-20

    Based on discussion, marking this as "Won't Fix"
  5. Dustin Hyde 2013-05-20

    Closing.

JSON Source