原理ListView's Item + paddingLeft(Level)+expand include
系統中的數據Bean-->Node
系統中的數據Bean-->Node
2018-04-09
正確的插入數據的方法應該是先判斷他是否有子節點,如果有子節點就找到第一個子節點的位置插入,如果不是就表示是葉子節點,直接插入到它的后面。
int iloc = 0;
if(node.getChild().size()!=0){
iloc = mAllNodes.indexOf(node.getChild().get(0));
}else{
iloc = index+1;
}
int iloc = 0;
if(node.getChild().size()!=0){
iloc = mAllNodes.indexOf(node.getChild().get(0));
}else{
iloc = index+1;
}
2017-02-23