Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19746] Android Set the tab width on a tabgroup

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionWon't Fix
Resolution Date2016-01-19T22:11:57.000+0000
Affected Version/sRelease 5.0.1, Release 5.0.2, Release 5.0.0
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
Reporter Ricardo Ramirez
AssigneeHieu Pham
Created2015-10-20T04:22:57.000+0000
Updated2016-01-19T22:12:21.000+0000

Description

Issue Description

When I build the code, we are seeing scroll able tap group and only 3 tabs are visible . We want all 5 tabs displayed always like before with 3.5.1.GA. Actually the width on the tabs is automatic, create a width property to the Ti.UI.Tab should enough to solve this issue. **Attached Images

Steps to reproduce

-Download the sample attached -Build and run Using SDK 5.0.2 in Android 4.X and 5.X -The tabs are scrollable

Attachments

FileDateSize
icon_tabs_example.png2015-12-01T04:27:42.000+000041912
Screenshot 1 SDK3_5_1_GA.png2015-10-20T04:16:25.000+000068891
Screenshot 2 SDK5_0_2_GA.png2015-10-20T04:16:25.000+000074563
TEST12 4 (1).zip2015-10-20T04:18:57.000+0000713617

Comments

  1. Ingo Muschenetz 2015-10-26

    From the comments in flow: "This is native behavior. When there are not enough room for tabs, Android automatically re-layouts the tab bar."
  2. Hieu Pham 2015-11-16

    As Ingo said, this behavior is expected. Even if you can set the tab width, and your tab title exceeds that width, you wouldn't be able to see it all anyways. Closing as won't fix.
  3. Ricardo Ramirez 2015-12-01

    Ok, thanks [~msamah].
  4. Lokesh Choudhary 2016-01-14

    Closing in accordance to the resolution the ticket.

JSON Source