AndroidTreeView
AndroidTreeView copied to clipboard
if child not exist than hide arrow
If child item not exist than hide down arrow and call intent
you need make a judge in your own view holder in method createNodeView()
,like this :
event = value.event;
if (hasChildItem(event)) {
arrow.setImageResource(R.mipmap.ic_arrow_right_black_24dp);
}
and you also need to make a judge again in method toggle()
,like:
@Override
public void toggle(boolean active) {
if (hasChildItem(event)) {
arrow.setImageResource(active ?
R.mipmap.ic_arrow_down_black_24dp : R.mipmap.ic_arrow_right_black_24dp);
}
}
glad here is some help for you.
in sample: f(node.isLeaf()){ arowView.setvisiablity(view.invisiable); }