public void setChangeListener(OnChangeListener listener) {
        changeListener = listener;
        if (changeListener != null) {
            // add a listener to TagViewer for removed tags events
            tv.setOnRemovedTagListener(new TagsViewer.OnRemovedListener() {
                @Override
                public void onRemovedTag(String tag) {
                    notifyChangeListener();
                }
            });
        }
    }
public void setChangeListener(OnChangeListener listener) {
        changeListener = listener;
        if (changeListener != null) {
            
            tv.setOnRemovedTagListener(new TagsViewer.OnRemovedListener() {
                @Override
                public void onRemovedTag(String tag) {
                    notifyChangeListener();
                }
            });
        }
    }
public void setChangeListener ( OnChangeListener listener ) { changeListener = listener ; if ( changeListener != null ) { // add a listener to TagViewer for removed tags events tv . setOnRemovedTagListener ( new TagsViewer . OnRemovedListener ( ) { @ Override public void onRemovedTag ( String tag ) { notifyChangeListener ( ) ; } } ) ; } }
Set the change listener.

@param listener
Set the change listener .