WhiteLine WhiteLine - 1 month ago 11
Android Question

Android - Appcelerator : Add n elements simultaneously

Titanium SDK 5.5.1.G.A


I'm converting an iOS app to be compatible with Android.

On iOS if i do this :

var v1 = Ti.UI.createView({
width : 10,
height : 10,
opacity : 0
});
var v2 = Ti.UI.createView({
width : 10,
height : 10,
opacity : 0
});

window.add(v1,v2);


The 2 view are added correctly. But on Android only the first view. It's a bug or the normal behavior on this platform?

For Android i have to do this :

window.add(v1);
window.add(v2);