Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable target click listener #39

Closed
Adnan9011 opened this issue Feb 4, 2017 · 2 comments
Closed

Disable target click listener #39

Adnan9011 opened this issue Feb 4, 2017 · 2 comments

Comments

@Adnan9011
Copy link

hi @sjwall
thanks for your great material help library .

i have simple question , if you do this function , can you share your implemantation for my issue :
how to disable target click listener , because i want to step by step prompt target .

i want to disable target (view) click listener .

thanks in advance

@sjwall
Copy link
Owner

sjwall commented Feb 8, 2017

Using builder.setCaptureTouchEventOnFocal(true) will stop the touch event being passed to the target view

@sjwall sjwall closed this as completed Feb 12, 2017
@mrSOMik
Copy link

mrSOMik commented Dec 10, 2020

Hello!
First of all, thank you for your great library!

I want to display multiple prompt target and go them step by step without interrupting the process by clicking on other views.
So, I added "builder.setCaptureTouchEventOnFocal(true)" as you recomendded above, but the process was still interrupted when clicking on other views and to avoit it I also added ".setCaptureTouchEventOutsidePrompt(true)".

And now what state or states I need to put in "setPromptStateChangeListener" to show the next prompt target on tap anywhere?
Using only "state == MaterialTapTargetPrompt.STATE_DISMISSED" does not work when I tap on focal.
To solve it I added 2 states "state == MaterialTapTargetPrompt.STATE_FOCAL_PRESSED || state == MaterialTapTargetPrompt.STATE_DISMISSED".
Is It correct or is there other simple way?

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants