您好:
假設現在有一個垂直上下滑動的scrollview
想請問是否有方法可以把新建的node加入頭端或插入現有的content children之中的方式?
scrollview文件中sortAllChildren()有提到arrivalOrder 不知是否可以利用?
在此先謝過
你好可以通过 setSiblingIndex 这个 API 来实现
node.parent = content;
node.setSiblingIndex(0);
ok了 感謝
您好:
假設現在有一個垂直上下滑動的scrollview
想請問是否有方法可以把新建的node加入頭端或插入現有的content children之中的方式?
scrollview文件中sortAllChildren()有提到arrivalOrder 不知是否可以利用?
在此先謝過
你好可以通过 setSiblingIndex 这个 API 来实现
node.parent = content;
node.setSiblingIndex(0);
ok了 感謝