Giter Club home page Giter Club logo

android-carousel-demo's People

Contributors

horribile avatar

android-carousel-demo's Issues

Not reporting correct element selected

What steps will reproduce the problem?
1. Create a carousel view with 7 Items
2. Select anyone that is not the first one
3. Get the callback with the position as 0

What is the expected output? What do you see instead?
It was expected to return the correct position

Please provide any additional information below.
Digging into the code I looked into the Carousel.java class and turns out that 
here: 
http://code.google.com/p/android-carousel-demo/source/browse/CarouselDemo/src/co
m/carouseldemo/controls/Carousel.java#1236 there was an infinite iteration 
since the angle is about 4.7 degrees each time and it goes into an infinite 
recursion (calling the mFlingRunnable each time this method is called).

I fixed if in my case by simply changing "if (angle != 0.0f)" to "if 
(Math.abs(angle) > 4)" But this is just a workaround and I am unsure of where 
the problem could be coming from since I am not very familiar with the code in 
hand.

Regards

Original issue reported on code.google.com by [email protected] on 13 Mar 2012 at 1:44

onItemSelectedListener Not working if image count is greater than 9.

What steps will reproduce the problem?
1.I m adding images from sqlite db 
2. modified the set images method
3. if image count is greater than 9 onItemSelected listener not working

What is the expected output? What do you see instead?
it has to trigger onItemSelected  even if we have 'n' number of images

What version of the product are you using? On what operating system?
the current version.

Please provide any additional information below.
can contact me on [email protected]

Original issue reported on code.google.com by [email protected] on 31 Oct 2013 at 9:58

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.