adef145 / spinningwheelandroid Goto Github PK
View Code? Open in Web Editor NEWCustom Spinning Wheel View for Android
License: Apache License 2.0
Custom Spinning Wheel View for Android
License: Apache License 2.0
Hello. thank's for this great djob.
Is it possible to replace items text by Image?
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?
The text is too close to the margin. Can you include padding? Thanks!
Edit: Solved it by including special space characters before the text. It doesn't work with normal space characters. https://beautifuldingbats.com/whitespace/
I have to rotate the spinner and stop at a specific item in the spinner.
Is there a way to implement this library with Kotlin
help
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.