Coder Social home page Coder Social logo

Comments (2)

sjwall avatar sjwall commented on May 22, 2024 5

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

from materialtaptargetprompt.

mrSOMik avatar mrSOMik commented on May 22, 2024

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.

from materialtaptargetprompt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.