Open kerem0comert opened 4 years ago
Also for me it is not working at all.
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()
}
})`
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.