[TIMOB-7302] Android: Titanium.UI.TabGroup: TabGroup with too many tabs difficult to navigate due to scaling
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2013-05-20T18:52:20.000+0000 |
Affected Version/s | Release 1.8.0.1, Release 2.0.0, Release 3.1.0 |
Fix Version/s | n/a |
Components | Android |
Labels | parity, qe-and011912, triage |
Reporter | Dustin Hyde |
Assignee | Ingo Muschenetz |
Created | 2012-01-19T14:01:36.000+0000 |
Updated | 2013-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
File | Date | Size |
---|---|---|
android tabgroup overflow.png | 2012-01-19T14:01:36.000+0000 | 21643 |
ios tabgroup overflow.png | 2012-01-19T14:01:36.000+0000 | 9865 |
According to this, we might be able to wrap the Tabs into a horizontal scroll view: http://java.dzone.com/articles/scrolling-tabs-android
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
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.
Based on discussion, marking this as "Won't Fix"
Closing.