thanhniencung / LuckyWheel

This is an other option to implement custom view like lucky wheel
166 stars 87 forks source link

Not working at all in Java Project #36

Open kerem0comert opened 4 years ago

kerem0comert commented 4 years ago

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 commented 4 years ago

Also for me it is not working at all.

srihari1904 commented 3 years ago

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()
        }
    })`