disableClick() not working with Sequence.ContinueMethod.OverlayListener
azrashaikh opened this issue · 2 comments
azrashaikh commented
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.
vyndor commented
You should use disableClickThroughHole
azrashaikh commented
Yes, worked. thanks 👍