[TIMOB-1331] View/Window/... has no property children in Android
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:55:53.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 M01 |
Components | Android |
Labels | android, defect |
Reporter | Jick Steen |
Assignee | Don Thorp |
Created | 2011-04-15T02:49:37.000+0000 |
Updated | 2011-04-17T01:55:53.000+0000 |
Description
iPhone allows to access the 'children' property on each window, scrollableView, view... but this seems not available in Android.
var win = Titanium.UI.currentWindow;
Titanium.API.debug(win.children); // is null
if (win.children) {
for (var index = 0; index < win.children.length; index++) {
win.remove(win.children[index]);
} }
Just ran across this limitation myself; since I have premium support I'm going to see if I can get them to prioritize this. It seems like it might be as simple as adding a getChildren() getter method to TiViewProxy.
Tickets with no one responsible get lost. I've moved it into 1.5 but I can't promise we'll get to it.
pass verified android sim 1.6/2.1 Titanium SDK version: 1.5.0 (11/27/10 10:50 aeb004c)