Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1528] Android: Only one object appears when multiple views should be drawn.

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:56:25.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsAndroid
Labelsandroid, defect, regression
ReporterThomas Huelbert
AssigneeDon Thorp
Created2011-04-15T02:55:14.000+0000
Updated2011-04-17T01:56:25.000+0000

Description

found against 1.4.1 f88b9e

1.use the script below and run the content

results: only one object shows, there should be 4 (one on each side) as on iPhone.

var win = Titanium.UI.currentWindow;

var view = Titanium.UI.createView({
borderRadius:10, backgroundColor:'red', width:50, height:50, top:5 });

var view1 = Titanium.UI.createView({
borderRadius:10, backgroundColor:'red', width:50, height:50, bottom:5 });

var view2 = Titanium.UI.createView({
borderRadius:10, backgroundColor:'red', width:50, height:50, right:5 });

var view3 = Titanium.UI.createView({
borderRadius:10, backgroundColor:'red', width:50, height:50, left:5 }); win.add(view,view1,view2,view3);

Comments

  1. Bill Dawson 2011-04-15

    http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.Window.add-method.html"> Documentation for add is clearly in the "singular", so probably that should be updated too.

  2. Thomas Huelbert 2011-04-15

    after internal conversation (Nolan), the decision is to leave this as is, undocumented on iOS, and keep existing android behavior.

JSON Source