Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
limuyang committed Jan 2, 2020
1 parent aba5135 commit af9a1ed
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ protected void onCreate(Bundle savedInstanceState) {

adapter.setNewData(getEntity());

// 模拟新增node
mRecyclerView.postDelayed(new Runnable() {
@Override
public void run() {
SecondNode seNode = new SecondNode(new ArrayList<BaseNode>(), "this is Add Second Node");
adapter.nodeAddData(adapter.getData().get(0), 1,seNode);
SecondNode seNode = new SecondNode(new ArrayList<BaseNode>(), "Second Node(This is added)");
//第一个夫node,位置为子node的3号位置
adapter.nodeAddData(adapter.getData().get(0), 3, seNode);
Tips.show("新增node");
}
}, 3000);
Expand Down

0 comments on commit af9a1ed

Please sign in to comment.