Comments (6)
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.
please provide link.
from carouselwidget.
@kiranboghra If you still need help with this I am implemented in my forked release.
from carouselwidget.
@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.
@ashenriques Take this to my repo please, I have gotten that to work using setSelection, I believe.
from carouselwidget.
@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)
- Vertical Carousel HOT 1
- Change scroll direction
- set view on Center Point HOT 15
- scrolling to clicked item is not proper
- Add README file
- How to add circular page indicator?
- Where is the reflection feature? HOT 1
- Crash after clicking add view HOT 4
- getting error HOT 2
- License HOT 2
- Views are too small HOT 4
- Is there any way to control the speed of scrolling or any way to stop scrolling at some position?
- carousel-widget take more than 50% cpu usage.
- is there any way to make it non endless.( i created issue in wrong repo .please delete this or modify ,sorry). HOT 6
- Refreshing Adapter HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carouselwidget.