worker8/TourGuide

disableClick() not working with Sequence.ContinueMethod.OverlayListener

azrashaikh opened this issue · 2 comments

I want to disable my control's click when it's highlighted.

My code :

ChainTourGuide.init(activity)
                .setToolTip(new ToolTip()
                        .setBackgroundColor(activity.getResources().getColor(R.color.color_help_text_background))
                        .setDescription(message)
                        .setGravity(gravity)
                ).setOverlay(new Overlay()
                        .disableClick(true)
                        .setEnterAnimation(getEnterAnimation())
                        .setExitAnimation(getExitAnimation())
                        .setOnClickListener(new View.OnClickListener() {
                            @Override
                            public void onClick(View v) {

                                if (callback != null) {
                                    callback.next();
                                    if (isLastTour)
                                        callback.helpCompleted();
                                }
                            }
                        })
                );
new Sequence.SequenceBuilder()
                .add(tour)
                .setDefaultOverlay(new Overlay()
                        .disableClick(true)
                        .setEnterAnimation(getEnterAnimation())
                        .setExitAnimation(getExitAnimation())
                )
                .setDefaultPointer(null)
                .setContinueMethod(Sequence.ContinueMethod.OverlayListener)
                .build();

I am still getting click event of my highlighted control.

You should use disableClickThroughHole

Yes, worked. thanks 👍