Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working at all in Java Project #36

Open
kerem0comert opened this issue Apr 16, 2020 · 2 comments
Open

Not working at all in Java Project #36

kerem0comert opened this issue Apr 16, 2020 · 2 comments

Comments

@kerem0comert
Copy link

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.

@liridonsadiku
Copy link

Also for me it is not working at all.

@srihari1904
Copy link

Same, Call back is not working

      `luckyWheelView.setLuckyRoundItemSelectedListener(object: LuckyWheelView.LuckyRoundItemSelectedListener{
        override fun luckyRoundItemSelected(index: Int) {
            Toast.makeText(
                this@SpinWheelActivity,
                "Lucky Draw Spinner - " + index,
                Toast.LENGTH_SHORT
            ).show()
        }

        override fun onLuckyWheelRotationStart() {
            Toast.makeText(
                this@SpinWheelActivity,
                "Lucky Draw Spinner - Spinning",
                Toast.LENGTH_SHORT
            ).show()
        }
    })`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants