Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19343] Android: Support for view.add(View[])

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionDuplicate
Resolution Date2016-06-21T18:36:49.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, core, parity, windows
ReporterPier Paolo Ramon
AssigneeChee Kiat Ng
Created2015-08-01T10:06:39.000+0000
Updated2016-06-21T18:36:49.000+0000

Description

In iOS we can atomically add multiple children views to a parent view in a single pass:
var parent = Ti.UI.createView({ layout: 'vertical' });

parent.add([
  Ti.UI.createLabel({ text: 'X' }),
  Ti.UI.createLabel({ text: 'Y' })
]);

Comments

  1. Hans Knöchel 2016-06-21

JSON Source