Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10028] Android: Cannot set 'tabs' property on a tabgroup

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2012-11-01T18:10:44.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsAndroid
Labelsapi, parity
ReporterStephen Tramer
AssigneeOpie Cyrus
Created2012-07-18T16:04:29.000+0000
Updated2017-03-22T22:26:41.000+0000

Description

Android does not allow adding tabs to a tabgroup via setting the "tabs" property directly (at least during creation) - note that iOS does allow this, and so this is a parity issue.
var tab1 = Ti.UI.createTab({
	window:Ti.UI.createWindow(),
	title:'win1'
});
var tab2 = Ti.UI.createTab({
	window:Ti.UI.createWindow(),
	title:"win2"
});

var tabgrp = Ti.UI.createTabGroup({
	tabs:[tab1, tab2]
})
tabgrp.open();

Comments

  1. Vishal Duggal 2012-11-01

    Dup of TIMOB-11434
  2. Lee Morris 2017-03-22

    Closing ticket as duplicate and links to the related ticket have been provided above.

JSON Source