Coder Social home page Coder Social logo

spinningwheelandroid's People

Contributors

adef145 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

spinningwheelandroid's Issues

Touch momentum?

This seems to be very much what I'm look for with an extremely easy-to-use interface (good work!), but what I'm missing is "touch momentum". Simply I want the user to spin the wheel by swiping across it quickly, and I don't want the user to be able to cheat by swiping it just a little bit to manage to stop the wheel at a beneficial choice for the user, so when the stopRotation event occurs I would like to be able to see how many times the wheel has rotated since the user stopped the swipe, and if it's above 5 (for example) I consider it as a valid spin.

I also suspect a "friction" property controlling how fast the wheel will slow down would be good to have.

Is this something you're willing to implement?

How to put text center

I am using this library and i want the text in center of triangle and also wants text vertical with rotation so that we can read character like
T
E
X
T

Unable to add listener on item click

Hi,

I just want to add listener on item click since each item had drawn via canvas so we can not add listener directly on canvas.
So I had tried to add a custom view inside onDraw(Canvas canvas) but getting some error .
@OverRide
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);

    if (circle == null) {
        initCircle();
    }

    if (hasData() && (points == null || points.length != getItemSize())) {
        initPoints();
    }

    drawCircle(canvas);

    drawWheel(canvas);

    ]drawWheelItems(canvas);

drawTriangle(canvas);
}

Can you help me in adding listener to item click?

I have to open a popup on item click.

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.