AndroidTreeView icon indicating copy to clipboard operation
AndroidTreeView copied to clipboard

if child not exist than hide arrow

Open vadol opened this issue 8 years ago • 2 comments

If child item not exist than hide down arrow and call intent

vadol avatar Dec 21 '16 11:12 vadol

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.

gyqsophila avatar Mar 19 '17 12:03 gyqsophila

in sample: f(node.isLeaf()){ arowView.setvisiablity(view.invisiable); }

devishell avatar Jun 13 '17 06:06 devishell