Giter Site home page Giter Site logo

Comments (6)

applm avatar applm commented on June 2, 2024

Check my other repository. Deprecated one. CoverFlow there has this
implemented.
Dne 5. 3. 2016 10:55 dopoledne napsal uživatel "kiran boghra" <
[email protected]>:

When user stop scrolling and MotionEvent.ACTION_UP is called in Carousel
selected item should move to center point (Scroll snap point), is there any
way or suggestionfor this functionality?


Reply to this email directly or view it on GitHub
#11.

from carouselwidget.

kiranboghra avatar kiranboghra commented on June 2, 2024

please provide link.

from carouselwidget.

gintechsystems avatar gintechsystems commented on June 2, 2024

@kiranboghra If you still need help with this I am implemented in my forked release.

from carouselwidget.

ashenriques avatar ashenriques commented on June 2, 2024

@gintechsystems in your repository did u managed how to make scroll to position to work?
I tried it but I was unable to make it work properly.

One issue I have when I just uncomment the function "carousel.scrollToItemPosition(position);" in onClickListener is that some views do a visual flickering.

The other issue it's a little more complex to explain. But my idea is to scroll to a card that it's not displayed in the screen.
For instance if I turn off the loop, and set mCount to length * 5; I will have 25 cards.
So if I set the card's onLongClickListener method to call scrollToPosition for the hardcoded value 24 (the last card), independently in which card I click in theory I should always jump to the last card.
But what happens is that sometimes I jump to the last card -> 24, other times to 23. When I make the jump from the first card -> 0 the app just crashes.

Do you have any idea how to solve this?

from carouselwidget.

gintechsystems avatar gintechsystems commented on June 2, 2024

@ashenriques Take this to my repo please, I have gotten that to work using setSelection, I believe.

from carouselwidget.

ashenriques avatar ashenriques commented on June 2, 2024

@gintechsystems you have your issues section disabled in your repo (try this -> http://programmers.stackexchange.com/questions/179468/forking-a-repo-on-github-but-allowing-new-issues-on-the-fork. The method setSelection centers the clicked card, but does not animate the scroll to it.

from carouselwidget.

Related Issues (16)

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.