thanhniencung / luckywheel Goto Github PK
View Code? Open in Web Editor NEWThis is an other option to implement custom view like lucky wheel
This is an other option to implement custom view like lucky wheel
Hi, this is a great library. Can we use the library via gradle dependency?. Thanks
Hi, i have seen your library, i have one question can we Can we customise the circle as per the below image? i mean the inner circles and there colors with this library.
Error display when text length >= 12 (text is outsite wheel). Could you set text size smaller or set multi line?
can we use this lib ? in my project ?
I have image from server then convert to bitmap
how to set value -> luckywheelitem.icon from bitmap
thank you
before the wheel is spinned the pointer doesnt point towards the first item.
tried to solve but unable to get a solution.
please help..
Can we stop the rotation of the wheel before the animation ends.
If i add more than 18 items, wheel positioning gets wrong and wheel doesn't stop at target index.
Unable to apply colors on rounds of wheelview. i want to add different different colors in each round of wheelview. please help me out.
Thanks in advance
I have tried to disable the listener to the LuckyWheel to false, also its clickability to false, bu the user is still able to touch the wheel and have it spinning. How can I disable it?
Can you help me how to http url image to convert to bitmap and set to each segment on wheel
Hi,
This is a great implementation of lucky wheel, and I would like to use it for my work and even contribute to it. In this regard, is it possible for you to add a license to this project ?
Pavan
can we use this lib ? in my project ?
Hi, i Want to stop spinning using value instead of index position.
FATAL EXCEPTION: main
the logcat show me hint in PeilView here
drawImage(canvas, tmpAngle, BitmapFactory.decodeResource(getResources(), mLuckyItemList.get(i).icon));
Avoid object allocations during draw/layout operations (preallocate and reuse instead)
I have implemented your library in Android. But unable to show the text in vertically as currently it is showing horizontally.
Can you please tell me details code logic how to show text vertically?
can i swap left or right without spin and get text
I'm having an issue with my app using this library. Recently, it appears the PieRotateListener
had a second method added to it. Fine.
However, the listener does not trigger on done when using startLuckyWheelWithTargetIndex
.
My source locally looks like:
float targetAngle = ((360f * mRoundOfNumber * rotationAssess) + 270f - getAngleOfIndexTarget(indexResult) - (360f / mLuckyItemList.size()) / 2);
animate()
.setInterpolator(new DecelerateInterpolator())
.setDuration(mRoundOfNumber * 1000 + 900L)
.setListener(new Animator.AnimatorListener() {
@Override
public void onAnimationStart(Animator animation) {
isRunning = true;
}
@Override
public void onAnimationEnd(Animator animation) {
setRotation(getRotation() % 360f);
if (mPieRotateListener != null && predeterminedNumber > -1) {
mPieRotateListener.rotateDone(predeterminedNumber);
}
}
Your source of the same line doesn't mention the predeterminedNumber
, instead triggering with the index of what was completed.
What's going on? I can't even get the older version of the library that used to work right with the way this library is versioned. There really should be versions cut and not just have users use the master
snapshot in Gradle.
Hey, im pretty new to android studio. and i want to implement this wheel into my existing Project, i dont know what to do. pls help me.
Can I set background image for pie?
How can i implement the library using Kotlin language?
when we rotate the wheel spinner it will also rotate the icon where we set in the main xml layout ..
is that possible wheel is just rotate and the icon is fixed on that place .?
I want to get position while clicking on items (segment which are drawn using Arc). Is there any possibility to do that?
@peterbetos Is there any possibility to get click event of arcs from canvas?
There is no startLuckyWheelWithTargetIndex(index) method as you show in the example.
The wheel starts the animation only if the user rotates it by touching.
setLuckyRoundItemSelectedListener()'s overridden methods do nothing at all. luckyRoundItemSelected() or onLuckyWheelRotationStart() don't get called anytime whether the wheel starts or stops.
Also there is a problem in passing icons to the items, R.drawable.icon doesn't work and produces null exceptions.
Is this not compatible to Java as you've written it in Kotlin?
Thanks in advance.
in spin index position is not accurate some time for 1st item it gives index 1 and some time it give 0 as index position.
new Thread(() -> {
MediaPlayer mMediaPlayer;
mMediaPlayer = MediaPlayer.create(getContext(), R.raw.tick);
mMediaPlayer.start();
}).start();
Where should I put it?
Hello,
I need to take click of center image of the wheel.
Appreciate your answer.
Thank You.
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.