Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/shineM/TreeView
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinyuan committed May 3, 2017
2 parents 02b5103 + 21160dc commit 35cc975
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ An android tree view with high performance and rich functions
### Captures
There are some gifs from Demo:

* Base tree actions:
<img src='images/show_demo_base.gif' width='240'/>

* Select node:
<img src='images/show_demo_select.gif' width='240'/>

Expand All @@ -26,15 +23,17 @@ There are some gifs from Demo:
### Usage
**1.Reference the library from your module's build.gradle:**
```groovy
compile 'me.texy.treeview:treeview_lib:1.0.1'
compile 'me.texy.treeview:treeview_lib:1.0.2'
```
**2.Implement your all level's BaseNodeViewBinder**

Sample:
```java
public class FirstLevelNodeViewBinder extends BaseNodeViewBinder {
TextView textView;
public FirstLevelNodeViewBinder(View itemView) {
super(itemView);
textView = (TextView) view.findViewById(R.id.node_name_view)
}

@Override
Expand All @@ -43,8 +42,7 @@ public class FirstLevelNodeViewBinder extends BaseNodeViewBinder {
}

@Override
public void bindView(View view, final TreeNode treeNode) {
TextView textView = (TextView) view.findViewById(R.id.node_name_view)
public void bindView(TreeNode treeNode) {
textView.setText(treeNode.getValue().toString());
}
}
Expand Down
Binary file removed images/show_demo_base.gif
Binary file not shown.

0 comments on commit 35cc975

Please sign in to comment.