Giter Club home page Giter Club logo

Comments (4)

idanatz avatar idanatz commented on May 30, 2024 1

look at the SwipeEventHook class:
SwipeEventHook(supportedSwipeDirections: SwipeDirection = SwipeDirection.values())

you can pass the direction of the supported swipe you wish, for example:
for right swipe: SwipeEventHook(SwipeDirection.Right)
for left swipe: SwipeEventHook(SwipeDirection.Left)

if none is specified then both Right and Left are supported.

Maybe in the next version, i will add a function to specify the supported direction to make this more clear, so keep an eye for a future version.

from oneadapter.

idanatz avatar idanatz commented on May 30, 2024

Hi, thanks for the kind words
What do you mean by stop the swipe?
Once the user swipe has passed a certain threshold it cannot be stopped as the RecyclerView has registered it as a swipe intent.
What exactly are you trying to achieve?

from oneadapter.

elghamry avatar elghamry commented on May 30, 2024

Your are welcome
i mean that when you use swipe functionality in the adapter
by default swipe left and right work
i wanna make one of them off

from oneadapter.

elghamry avatar elghamry commented on May 30, 2024

okay i got the idea ... iam waiting for the amazing coming version :D
thanks for your efforts

from oneadapter.

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.