File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
library/src/main/java/com/unnamed/b/atv/view Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 26
26
public class AndroidTreeView {
27
27
private static final String NODES_PATH_SEPARATOR = ";" ;
28
28
29
- private TreeNode mRoot ;
29
+ protected TreeNode mRoot ;
30
30
private Context mContext ;
31
31
private boolean applyForRoot ;
32
32
private int containerStyle = 0 ;
@@ -37,6 +37,14 @@ public class AndroidTreeView {
37
37
private boolean mUseDefaultAnimation = false ;
38
38
private boolean use2dScroll = false ;
39
39
40
+ public AndroidTreeView (Context context ) {
41
+ mContext = context ;
42
+ }
43
+
44
+ public void setRoot (TreeNode mRoot ) {
45
+ this .mRoot = mRoot ;
46
+ }
47
+
40
48
public AndroidTreeView (Context context , TreeNode root ) {
41
49
mRoot = root ;
42
50
mContext = context ;
Original file line number Diff line number Diff line change @@ -46,4 +46,7 @@ public void insertNodeView(View nodeView) {
46
46
nodeContainer .addView (nodeView );
47
47
}
48
48
49
+ public ViewGroup getNodeContainer () {
50
+ return nodeContainer ;
51
+ }
49
52
}
You can’t perform that action at this time.
0 commit comments