Code Monkey home page Code Monkey logo

Comments (6)

wdullaer avatar wdullaer commented on June 6, 2024

How would you expect this to work?
You can either use the horizontal swipe to scroll your scrollview, or to swipe the listview.

Even if you could get both widgets to play nice with one another it would lead to massively confusing user experience (is it going to scroll left, or am I going to trigger a delete on my item?)

If you need to place a horizontal scroll view in your listview, this would be a red flag to me and I would take a closer look at my design.

from swipeactionadapter.

rajazeeshanahmed avatar rajazeeshanahmed commented on June 6, 2024

@wdullaer I'm following the google inbox design. Whole list-view item is not the horizontal scroll view but it only shows the attachments. In short it is totally the blue print of google inbox. Please check and then give your comments about that. Looking forward

from swipeactionadapter.

rajazeeshanahmed avatar rajazeeshanahmed commented on June 6, 2024

@wdullaer waiting for your response. Please help!

from swipeactionadapter.

wdullaer avatar wdullaer commented on June 6, 2024

The way the library is currently implemented, this is not possible.
The SwipeActionAdapter will steal the horizontal swipe before your HorizontalScrollView can process it.

from swipeactionadapter.

rajazeeshanahmed avatar rajazeeshanahmed commented on June 6, 2024

@wdullaer just for the sake of argument, if i write this line in my adapter "attachment_view.getParent().requestDisallowInterceptTouchEvent(true);" it started working means horizontal scroll view items starts scrolling. but now another problem is that user can not scroll list by tapping on attachment view? Got my point?

from swipeactionadapter.

wdullaer avatar wdullaer commented on June 6, 2024

What you're doing there is requesting my library not to treat the swipe events and it is complying. This is why you will never get the horizontal swipe.

What you could try to do is have your application code set and unset that flag at the appropriate times.

Like I said in the previous comment: this library is currently not set up to do this kind of work. It would need to inspect all its children for horizontal scroll behaviour, keep track of their horizontal scroll state and then pass the touch events as required.

from swipeactionadapter.

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.