dodomail 发表于 2013-2-7 19:32:37

setChildIndex 入门

摘自http://www.cnblogs.com/psj2002/archive/2011/02/17/1957280.html

setChildIndex常用有以下几种:

置顶:容器.setChildIndex(对象A,容器.numChildren-1);

置底:容器.setChildIndex(对象A,0);

插入对象B的前面:容器.setChildIndex(对象A,容器.getChildIndex(对象B));

插入对象B的后面:容器.setChildIndex(对象A,容器.getChildIndex(对象B)-1);
页: [1]
查看完整版本: setChildIndex 入门