DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


sample_code:layout_children

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
sample_code:layout_children [2014/12/28 17:49]
stevegarman add clearLayout
sample_code:layout_children [2014/12/28 18:20] (current)
stevegarman [clearLayout] use app.GetObjects
Line 48: Line 48:
 { {
   //​takes a layout as an argument    //​takes a layout as an argument 
 +  var allobjs = app.GetObjects();​
   var obj,​ order;​    var obj,​ order;​ 
   //​loop through all controls    //​loop through all controls 
-  for (var id in _map+  for (var id in allobjs
   {    { 
-      obj = _map[id] +      obj = allobjs[id] 
       //​check if control is on our layout        //​check if control is on our layout 
       order = layt.GetChildOrder( obj );​        order = layt.GetChildOrder( obj );​ 
sample_code/layout_children.txt · Last modified: 2014/12/28 18:20 by stevegarman